in reply to Re: Common Perl Pitfalls
in thread Common Perl Pitfalls
Rather than mess around with $INPUT_RECORD_SEPARATOR (AKA: $/), and restore it afterwards, a better method would be to use the File::Slurp module.
It is another common Perl pitfall to write new code for a common problem when you should have looked on CPAN. There is a very good chance that you will find a fully debugged implementation that considers all the edge cases. It never ceases to amaze me that people would prefer to spend half a day writing and debugging code, instead of 15 minutes finding and installing a module from CPAN.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Common Perl Pitfalls
by JavaFan (Canon) on Apr 11, 2012 at 14:23 UTC | |
by jdporter (Paladin) on Apr 11, 2012 at 15:15 UTC | |
by JavaFan (Canon) on Apr 11, 2012 at 15:29 UTC | |
by jdporter (Paladin) on Apr 11, 2012 at 16:14 UTC |
In Section
Meditations