Front page | perl.perl5.porters |
Postings from October 2003
Re: new slurp module
Thread Previous
|
Thread Next
From:
Uri Guttman
Date:
October 23, 2003 02:45
Subject:
Re: new slurp module
Message ID:
x73cdke19a.fsf@mail.sysarch.com
>>>>> "A" == Abigail <abigail@abigail.nl> writes:
A> What's ugly or not is very subjective. The speed argument doesn't
A> quite convince me. How often do programs slurp in lots of files?
template systems, config files, language source, etc. many types of
files are slurped and sometimes lots of them. as i write in the article,
slurping and then munging/parsing/whatever on the whole file can be much
faster than classic line by line. so the speed does matter and why not
make it as fast as possible since it is a module that could be called
often.
A> I find neither argument a reason for including it in the standard
A> distribution - the standard distribution is big enough already.
the reason to put it in core is to have a standard (not just cpan)
module to do slurping. it simplifies the operation, makes it more
maintainable (no multiple idioms to remember) and is faster. many other
modules are in core with less than that.
i am not going to force the issue, i just wanted to bring it up. if the
consensus is to just put it on cpan, then i will probably keep the
file::slurp name.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
Thread Previous
|
Thread Next