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
In reply to Re: pattern matching an array
by broquaint
in thread pattern matching an array
by nkpgmartin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |