On Thu, 28 Jun 2001, Stas Bekman wrote:
> what happens if $args->{order} is defined, but is none of
> rotate|random|repeat when somebody mistypes the value or --order? This
> code will die. My original code was just silently ignoring this option if
> it's an unknown one.
i don't think an unknown option should be silently ignored.
it doesn't die if given an unknown option, it does this:
error "unknown order '$order'";
which you can see:
% t/TEST -order blah
...
unknown order 'blah'
apache/cgihandler....ok
...
i wouldn't mind if it died when given an unknown order option though.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]