Can anyone tell me what I'm doing wrong?
You aren't capturing or using list context. You are assigning a boolean to $map which answers "does this match?" Try:
my ($map) = $traps{$trap}{oid} =~ /(\d+)$/;
-sauoq "My two cents aren't worth a dime.";
In reply to Re: RegEx problems
by sauoq
in thread RegEx problems
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |