(don't use $a or $b as a varname -- it's a global var for sort)my $s = "qwe"; croak "w is bad" if $s =~ /w/; # croak if the string contains a w # OR, faster: croak "w is bad" if index($s,'w') >= 0;
In reply to Re: die in regexp
by davidrw
in thread die in regexp
by powerman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |