Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^6: Turning on regexp debugging at runtime

by Monk::Thomas (Friar)
on Sep 25, 2014 at 07:43 UTC ( #1101915=note: print w/replies, xml ) Need Help??

in reply to Re^5: Turning on regexp debugging at runtime
in thread Turning on regexp debugging at runtime

Your example doesn't work.

Uhm. Yes. I was aware of that. I just wanted to highlight that you don't need to 'reset' the lexical scoping by descending into another level if all you have to do is leave the scope.

What I still don't get is why you are doing all this in the first place. Unless I'm missing something

foreach my $str (@str) { $str =~ /$re1/; $str =~ /$re2/; ... $str =~ /$reN/; }
doesn't do anything except wasting some CPU cycles to match strings and throw away the result. Maybe by giving us more information a cleaner solution can be found?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1101915]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2019-12-10 20:27 GMT
Find Nodes?
    Voting Booth?

    No recent polls found