in reply to perl -d at runtime?
#!/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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: perl -d at runtime?
by QM (Parson) on Dec 20, 2003 at 01:15 UTC | |
by bsb (Priest) on Dec 22, 2003 at 08:03 UTC |