#!/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 reply to Re: perl -d at runtime?
by ccarden
in thread perl -d at runtime?
by bsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |