in reply to Nicer If...
One idea:
Update: I like suaveant's idea, though I think the conditional would be 'if $has == @ship_fields or $missing == @ship_fields'my @req_fields = qw( Shipping_address ... shipdayph ); my @filled = grep { $query->param($_) } @req_fields; failure if @req_fields && @filled
Another update: Took suaveant's suggestion(s), thought I caught that first one :)
Ok, I get it now, duh..
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Nicer If...
by suaveant (Parson) on Jul 12, 2001 at 23:16 UTC | |
Re: Re: Nicer If...
by suaveant (Parson) on Jul 12, 2001 at 23:18 UTC |
In Section
Seekers of Perl Wisdom