But even though this will work, I agree with kvale: if at all possible, you'd be better of using qr//.@compare = ('^foo ', ' bar$'); $i=0; foreach (@compare){ unless $test =~ $compare[$i]){ print $test; $i++ } }
In reply to Re: Regular expressions and Arrays
by bart
in thread Regular expressions and Arrays
by wilbur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |