in reply to Re: Need to match number other than 1
in thread Need to match number other than 1

Am I missing the point here or isnt it just
if($number != 1) { }

Replies are listed 'Best First'.
Re^3: Need to match number other than 1
by shmem (Chancellor) on Nov 29, 2007 at 12:09 UTC

    You miss the "match number" part.

    qwurx [shmem] ~ > perl -wle '$foo = "bar"; print "not 1" if $foo != 1' Argument "bar" isn't numeric in numeric ne (!=) at -e line 1. not 1

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}