in reply to Re: Is there any other way to avoid greedy matchingin thread Is there any other way to avoid greedy matching
Otherwise, something like this might work: scalar(() = $foo =~ /(\d)/g) == 2
-David
Update: Wow, what was I smoking?