in reply to Don't want to match nothing
but I wouldn't do that in case $b == 0. I also wouldn't use eq in case $b is numeric or == in case $b is a string. So do something like,if( $b and $a =~ /$b/ ) { do this }
if ($b !~ /^$/ and $a =~ /$b/) { do this }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Don't want to match nothing
by splinky (Hermit) on Jul 06, 2000 at 07:06 UTC | |
by Adam (Vicar) on Jul 06, 2000 at 22:26 UTC |