On Fri, May 31, 2002 at 10:29:07AM +0200, Axel Rose wrote: > Hi Ronalds, > > thanks for the quick answer. > Is there any workaround? > I would simply love to have the ability to debug regular expressions > interactively. > > I tried: > DB<10> ;{$x="blah"; $x =~ /(a)/; print $1} > but this also doesn't seem to work.
That works for me... DB<1> ;{$x="blah"; $x =~ /(a)/; print $1} a What result did you get? By the way, if you haven't already, install Bundle::CPAN. You'll get readline support in the debugger, which will make debugging regexes in this way much easier. You'll be able to use the arrow keys to step through the debugger history, as in some shells. Ronald