Otherwise, something like this might work:
scalar(() = $foo =~ /(\d)/g) == 2
-David
Update: Wow, what was I smoking?
In reply to Re^2: Is there any other way to avoid greedy matching
by erroneousBollock
in thread Is there any other way to avoid greedy matching
by krissmercedes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |