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

Re: new slurp module

Thread Previous | Thread Next
Nick Ing-Simmons
October 24, 2003 02:51
Re: new slurp module
Message ID:
Uri Guttman <> writes:
>>>>>> "AB" == Arthur Bergman <> writes:
>  AB> On Thursday, October 23, 2003, at 09:30  am, Uri Guttman wrote:
>  >> 
>  >> i would like to propose that my module be part of the 5.10 distribution
>  >> and so i think it should go under the IO::File namespace.
>  AB> I see no reason for adding yet another IO module to the core. It could
>  AB> just as well go on CPAN and support older perls as well.
>i want to release it to cpan for all perls. it should work with as far
>back as 5.005. but i think that it could be in future distributions so
>it will become the common idiom for slurping instead of the slower and
>IMO uglier tricks.

I have a feeling that for 5.7+ doing the slurp at PerlIO level would be 
a win (:mmap sort of does that for read, but whether it really wins 
depends on OS's mmap() efficiency and whether file is local or NFS).


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