Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: On error, how to show the regexp values? (tracing warnings)

by LanX (Saint)
on Jan 07, 2017 at 16:03 UTC ( [id://1179134]=note: print w/replies, xml ) Need Help??


in reply to Re^2: On error, how to show the regexp values? (tracing warnings)
in thread Tracing warnings: how to show the regexp values?

?

> Even outside the debugger, you can establish a warnings handler:

Yes, since "for debugging" doesn't mean "inside debugger"

> And the reason $2 is undefined

see Re: On error, how to show the regexp values? (?: doesn't capture)

> has only one capture group, (\d).

capture groups are unrelated to \d

The outer parens would capture without the colon :

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^4: On error, how to show the regexp values? (tracing warnings)
by Anonymous Monk on Jan 08, 2017 at 02:01 UTC

    >> has only one capture group, (\d).

    > capture groups are unrelated to \d

    Capture groups in general are unrelated to \d, but nonetheless the lone capture group in the regexp is (\d).

    > The outer parens would capture without the colon :

    Also correct. But in fact the outer parens do have the colon, so they do not capture.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-24 01:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found