[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] OT: one for the Perl Guru's
- Subject: [ale] OT: one for the Perl Guru's
- From: Robert.L.Harris at rdlg.net (Robert L. Harris)
- Date: Tue, 29 Apr 2003 13:40:54 -0400
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