if ( $number =~ m/^\d+$/ and $number != 1 ) { # do stuff } else { die "There can be only 1!" }
In reply to Re: Need to match number other than 1
by tachyon-II
in thread Need to match number other than 1
by kprasanna_79
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |