Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: renaming 1000's of FASTA filesby Corion (Patriarch) |
on Jul 11, 2011 at 12:55 UTC ( [id://913692]=note: print w/replies, xml ) | Need Help?? |
How is this good practice in Perl? I'm genuinely asking this. I have found some good practices for me, like for example that every if block should also have an else block, even if that block just dies, because in the long run, I will need code in that block anyway. But I don't see what bugs closing a file prevents or what diagnostics it helps to create. I neglect checking the result of close(), but that's about the only "benefit" I see.
In Section
Seekers of Perl Wisdom
|
|