T
Tom Gur
Hi,
I'm using GetOptions in the following manner:
$getoptions_rc = GetOptions( "host=s" => \$host, "port=n" => \$port);
Now, in case the user inputs something wrong, like a letter in the
port - GetOption prints a default errormsg.
how can I suppress the print and instead store the errormsg in a
variable ?
Thanks,
Tom
I'm using GetOptions in the following manner:
$getoptions_rc = GetOptions( "host=s" => \$host, "port=n" => \$port);
Now, in case the user inputs something wrong, like a letter in the
port - GetOption prints a default errormsg.
how can I suppress the print and instead store the errormsg in a
variable ?
Thanks,
Tom