Did you see Re: conditional debug call perf?
In reply to Re^5: Using the Perl Debugger (-d) by BrowserUk in thread Using the Perl Debugger (-d) by Melly