SBECK has asked for the wisdom of the Perl Monks concerning the following question:
When tracking down a tricky regexp related problem, it's nice to turn on regexp debugging:
use re 'debug';
Ideally, I would like to be able to toggle it on and off (especially in the debugger) because there may be a lot of other regexp matching going on that works perfectly well, and I want to get to the portion that is broken. Unfortunately, I haven't figured out how to do that.
I know this comes down to me not truly understanding how pragmas work, and maybe it's not possible, but is there a way to toggle debugging during runtime?