in reply to Re: nonempty false list
in thread nonempty false list
Which seemed pretty elegant, but as previously discussed does not work, because its a hash slice. THIS, however, seems horribly inelegant:if(@opts{qw|a b c|}) { }
But perl must have something better than this:if(@{[@opts{qw|a b c|}]}) { }
if($opts{a} || $opts{b} || $opts{c}) { }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: nonempty false list
by kennethk (Abbot) on Mar 10, 2011 at 18:52 UTC | |
|
Re^3: nonempty false list
by wind (Priest) on Mar 10, 2011 at 18:59 UTC | |
|
Re^3: nonempty false list
by ikegami (Patriarch) on Mar 10, 2011 at 19:06 UTC |