good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Check multiple array elements for a single conditionby Marshall (Canon) |
on Aug 25, 2016 at 19:38 UTC ( [id://1170479]=note: print w/replies, xml ) | Need Help?? |
As a contrary opinion, I think your code is fine. It is very clear, short and will execute very efficiently. I see no need to make it "shorter". Any shorter high level version of this will code to the same thing at lower levels. You are fine with this.
In Section
Seekers of Perl Wisdom
|
|