Everyone, Please correct me if I am emailing the wrong address/list. Thanks.
I have an idea for the int() function. I think it would be cool if it returned false/undefined when the argument passed to it is a whole number. For example: int(1) or print "argument passed to int() is something other than a decimal number"; A friend came up with this: sub myint { return if $_[0] =~ /\A\d+\z/; $_[0] =~ /^(\d+)/ ? $1 : 0 } What do you guys think? Thanks, Chris Angell