Or something along those lines. I used it when I wanted find the cause of warnings in a very long-running script. I'd start the script with -d, and when it hit a warning it would pop me into the debugger and I could check the current value of all variables, step forward, etc.$SIG{'__WARN__'} = sub { die $_[0]};
In reply to Re: debugging trick of the week: fatal warnings
by perrin
in thread debugging trick of the week: fatal warnings
by gav^
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |