in reply to Regular expressions and Arrays
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++ } }
|
|---|