in reply to Re^2: Building ARRAY with grep expression NOT working
in thread Building ARRAY with grep expression NOT working
open ... or ...
is Perl idiom and completely acceptable.
... and ...;
in place of
... if ...;
is a sneaky use of a logical operator and short circuit evaluation that is more appropriate to golf than production code.
I realise that eyes adapt over time, but explaining to a neophyte how and provides conditional code needs a lot more prose than explaining as postfix if.
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
In Section
Seekers of Perl Wisdom