Hi
I am using Getopt::Std
in a Perl script, and would like to pass in a zero as value. I am checking that values are set correctly using unless()
. At the moment unless()
is rejecting the value as being unset.
Is there a way to get unless()
to accept zero as a valid value (any non-negative integer is valid).
This is probably perfeclty simple, but I've never touched Perl before a few days ago!
Rich