Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I'm trying to do the following: Just use a junction. Oh no, Perl 5 doesn't have junctions. Well, then there's Quantum::Superpositions, but personally I wouldn't use it... In fact I've had to workaround: That's fine enough, has the advantage of having a straightforward generalization to more items and can be cast into a IMHO simpler form like thus:
Is there a more direct statement one can use? More direct?
This has the advantage of or's short circuiting, but in this case it really seems like a micro-optimization not worth the effort. To generalize to an arbitrary number of items you'd better need a hyperoperator that's not in Perl 5 either. In reply to Re: testing more than one item for equality
by blazar
|
|