go ahead... be a heretic | |
PerlMonks |
Re: Selecting successive linesby ansh batra (Friar) |
on Sep 17, 2013 at 09:01 UTC ( [id://1054409]=note: print w/replies, xml ) | Need Help?? |
I have a simple way
Since you need to check for multiple names , you may also use if ( grep( /^$data$/, @array ) )
In Section
Seekers of Perl Wisdom
|
|