http://qs321.pair.com?node_id=964548


in reply to Re^2: Common Perl Pitfalls
in thread Common Perl Pitfalls

It always amazes me people prefer downloading a CPAN module, and using it, over writing a one-liner. I'm even more amazed that people think that just because there's a module on CPAN, it automatically is fully debugged and covers all the edge cases.

I do wonder though, if it takes half a day to write:

my $slurp = do {local $/; <HANDLE>};
how long do you need to type in:
use Some::Module::From::CPAN; my $slurp = Some::Module::From::CPAN->some_API(some_argument);
Twice the number of lines, so, a full work day?