Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I want a "true" or "false" status, however, this dosen't seem to be working. Any help would be appreciated. I'm a newcomer to the Perl arena, Thanks. KM$source = "/kmtest/cci022_031902.txt: No such file or directory"; if ($source =~ /'no such file'/i) { print "Found it \n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: string search
by jeffa (Bishop) on Mar 20, 2002 at 14:55 UTC | |
|
Re: string search
by broquaint (Abbot) on Mar 20, 2002 at 14:58 UTC | |
by ariels (Curate) on Mar 21, 2002 at 10:25 UTC | |
|
Re: string search
by busunsl (Vicar) on Mar 20, 2002 at 14:56 UTC |