develooper Front page | perl.perl5.porters | Postings from October 2003

Re: new slurp module

Thread Previous | Thread Next
Uri Guttman
October 23, 2003 02:45
Re: new slurp module
Message ID:
>>>>> "A" == Abigail  <> 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

  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 Guttman  ------  --------
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About