pglenski has asked for the wisdom of the Perl Monks concerning the following question:
Any ideas? Thanks!chomp(@searchlist = `ls`); open(IN,"test.txt"); while (<IN>) { chomp; if ($_ =~ @searchlist) {print "Match Found"} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Search List
by holli (Abbot) on Dec 20, 2005 at 16:14 UTC | |
by Roy Johnson (Monsignor) on Dec 20, 2005 at 16:31 UTC | |
by patron (Beadle) on Dec 24, 2005 at 16:53 UTC | |
by holli (Abbot) on Dec 25, 2005 at 00:34 UTC | |
by patron (Beadle) on Dec 25, 2005 at 14:26 UTC | |
|
Re: Search List
by sachmet (Scribe) on Dec 20, 2005 at 16:27 UTC | |
by holli (Abbot) on Dec 20, 2005 at 18:25 UTC | |
|
Re: Search List
by ikegami (Patriarch) on Dec 20, 2005 at 16:43 UTC | |
by Roy Johnson (Monsignor) on Dec 20, 2005 at 17:26 UTC | |
by ikegami (Patriarch) on Dec 20, 2005 at 17:51 UTC | |
|
Re: Search List
by l3v3l (Monk) on Dec 20, 2005 at 18:00 UTC |