Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Need to match number other than 1

by tcf03 (Deacon)
on Nov 29, 2007 at 12:58 UTC ( [id://653824] : note . print w/replies, xml ) Need Help??


in reply to Need to match number other than 1

if ( $number =~ /^\d*$/ and $number != 1 ) { # not 1 stuff here }
Ted
--
"That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
  --Ralph Waldo Emerson