Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi,
Perhaps those who are familier with SKILL language can understand my question well. I am looking for a PERL function which is equalent to SKILL's member(). I have an array lets say @arr = qw/one two three/ and then I am reading a file and get only those lines matching the elements of my array. I want to avoid foreach loop over while <> (as both @arr & file are big). It would be less time consuming if i read the file only once and get the matched lines containing members from @arr. Thanks, riz. In reply to Looking for function similer to member() in SKILL by riz
|
|