I'd like to add something like: && ($lines[$y]=~/@reqs/) ? but obviously this doesnt work . Thanks in advance.for ($y=0; $y<@lines;$y+=1) { if (($lines[$y]=~/^\*R_/) && ($lines[$y]!~/BADSTRING/)) { do something; } }
In reply to pattern matching an array by nkpgmartin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |