I liked the node by Jeffa which explained the basics of slurping at Perl Idioms Explained.

But if you want to read about the details, with BenchMarks and alot of low-level code, see the slurp-article.pod contained in the File-Slurp-9999.01 module.

The reason I mention this here, is that when I first heard of the File::Slurp module, I sloughed it off, with " heck who needs a module for that". But I happened across it today, and was very surprised by the intricacies and benchmarks.

If you slurp around alot of files, it would be worth your while to read this.

Replies are listed 'Best First'.
Re: Slurping in detail (perl.com article)
by grinder (Bishop) on Dec 15, 2003 at 21:59 UTC
Re: Slurping in detail
by duff (Parson) on Dec 15, 2003 at 22:22 UTC

    Indeed, many people write off modules such as these because they can think of an implementation almost instantly. Often though, they aren't completely cognizant of the design tradeoffs their implementation forces. I would argue that modules such as File::Slurp are precisely the modules that should be part of the standard perl distribution.