Call me crazy, but...
My code now reads:

my $limit;
if ( $params =~ /[&^]limit=([0-9]{1,3})$/ ){
 $limit = $1;
}
print $limit;

it now matches &limit=3$ but not ^limit=3$

when the RegEx was /^limit=([0-9]{1,3})$/ it matched ^limit=3$ fine

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to