Problems? Is your data what you think it is? | |
PerlMonks |
Re: perl -d at runtime?by ccarden (Monk) |
on Dec 19, 2003 at 19:09 UTC ( [id://315875]=note: print w/replies, xml ) | Need Help?? |
You can definitely do this in your script:
#!/usr/bin/perl -d ... loads up the debugger correctly. So what if you had two versions of your script ... one with -d in the shebang line, and one without? Call the -d version when your condition requires it. Sloppy but it works.
In Section
Seekers of Perl Wisdom
|
|