Welcome to the Monastery | |
PerlMonks |
Re (tilly) 2: Parse/Verify CSV filesby tilly (Archbishop) |
on Nov 07, 2001 at 20:12 UTC ( [id://123838]=note: print w/replies, xml ) | Need Help?? |
There is no need to close filehandles, Perl will do it for you. It is good style to localize them ahead of time though. A far worse error is putting the return in the die statement. When you do that you tell Perl that you are doing all of the formatting of that message. If you simply leave it out then the person fixing your code gets the very handy information of what file and line number the error came from. This kind of context can really speed up debugging a complex program.
In Section
Cool Uses for Perl
|
|