in reply to Re: On error, how to show the regexp values?
in thread Tracing warnings: how to show the regexp values?
Either it doesn't match, so the error can't occur with a tested regex!
Or one used or clauses or conditional matching like in /(a)|(b)(c)/ then having an undefined $2 is intended behaviour.
in the latter case silencing the warning of an undefined value becoming an empty string is the normal approach. ( no warnings qw/uninitialized/ )
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|