Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$a="aaa"; $b=""; if($a=~/$b/){print "I found $b in $a\n";} else(print "I didn't find $b in $a\n";} If $a is somthing and $b is nothing I don't want to find nothing in something... How do I make it print "I didn't find $b in $a ....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Don't want to match nothing
by Adam (Vicar) on Jul 06, 2000 at 03:48 UTC | |
by splinky (Hermit) on Jul 06, 2000 at 07:06 UTC | |
by Adam (Vicar) on Jul 06, 2000 at 22:26 UTC | |
|
RE: Don't want to match nothing
by PipTigger (Hermit) on Jul 06, 2000 at 10:06 UTC |