On Wed, 27 Jun 2001, Doug MacEachern wrote:

> 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.

doh! I knew that I needed a strong coffee and not tea in the morning :(
Yours is just fine.

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to