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 }
In reply to Re: Don't want to match nothing
by Adam
in thread Don't want to match nothing
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |