Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: Regular Expression Questionby larryk (Friar) |
on Mar 27, 2001 at 22:00 UTC ( [id://67562]=note: print w/replies, xml ) | Need Help?? |
you are right to suspect that this would not work - the single \d as opposed to \d+ before the % would mean that the regex would fail to match unless the % was between 0 and 9. what I expect you are looking for is for(<>) { /(\d+)%/; print if $1 >= 88 }
In Section
Seekers of Perl Wisdom
|
|