nkpgmartin has asked for the wisdom of the Perl Monks concerning the following question:
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; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pattern matching an array
by broquaint (Abbot) on Jul 15, 2003 at 15:24 UTC | |
|
Re: pattern matching an array
by BrowserUk (Patriarch) on Jul 15, 2003 at 15:34 UTC | |
|
Re: pattern matching an array
by flounder99 (Friar) on Jul 15, 2003 at 19:33 UTC |