![]() |
|
We don't bite newbies here... much | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
and has very loose precedence, so your last example is parsed as
The first regex match succeeds (thus the 1), and the result of the second one is discarded. Use && instead of and to get the result you want. See also: perlop. In reply to Re: perl regular expressions and empty strings unexpected results
by moritz
|
|