![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re^3: Using the Perl Debugger (-d)by MaxKlokan (Monk) |
on Jan 26, 2007 at 10:33 UTC ( [id://596688]=note: print w/replies, xml ) | Need Help?? |
I have used your same approach sometimes. The problem I hit is that if your program has been migrated to a production environment where the script is read-only, you cannot turn on/off the switch for debugging purposes. That is why I prefer to add a command-line switch to turn on debugging:
Update To run the script you would use perl myscript.pl -d
In Section
Seekers of Perl Wisdom
|
|