Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: file duplication errorby vek (Prior) |
on Feb 02, 2005 at 05:24 UTC ( [id://427154]=note: print w/replies, xml ) | Need Help?? |
This really has nothing to do with the problem at hand but I just wanted to add an observation. Always check the return value of open() and react accordingly: You are reading the entire file into memory here: Which is ok for small files but might bite you if you try that with huge files.
--
vek
--
In Section
Seekers of Perl Wisdom
|
|