in reply to pattern matching an array
I'd like to add something like: && ($lines[$y]=~/@reqs/)Then you can use a simple grep like so
This way if $lines[$y] matches any of the strings in @reqs that particular condition will return true. See. grep for more info.if (($lines[$y]=~/^\*R_/) && ($lines[$y]!~/BADSTRING/) && grep $lines[$y] =~ $_, @reqs)
_________
broquaint
|
|---|