[ale] OT: one for the Perl Guru's

Robert L. Harris Robert.L.Harris at rdlg.net
Tue Apr 29 13:40:54 EDT 2003



 Say I have an array containing the phrases "foo bar" "this one" and
"one more here" named @IgnoreArray.  Then I have lines of text being
read into 3 variables.  I want to do something like:

  next if (grep(/@IgnoreArray/, $text));

What's the best syntax for this.  I can make it work if I were to do a
for loop instead of @IgnoreArray but that's visibly ugly to read.


:wq!
---------------------------------------------------------------------------
Robert L. Harris                     | PGP Key ID: E344DA3B
                                         @ x-hkp://pgp.mit.edu 
DISCLAIMER:
      These are MY OPINIONS ALONE.  I speak for no-one else.

Diagnosis: witzelsucht  	

IPv6 = robert at ipv6.rdlg.net	http://ipv6.rdlg.net
IPv4 = robert at mail.rdlg.net	http://www.rdlg.net

 PGP signature




More information about the Ale mailing list