![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: Tracking down errors in data from input files.by moritz (Cardinal) |
on Mar 07, 2008 at 10:58 UTC ( #672735=note: print w/replies, xml ) | Need Help?? |
$. is a global variable, so if you're always working with the current line, you don't need to pass it around.
For debugging I always use Carp::confess (it's in core) instead of die, which gives me a full stack trace. If you want to associate additional informations (like line numbers) with your data, I recommend the object oriented approach.
In Section
Seekers of Perl Wisdom
|
|