Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Building ARRAY with grep expression NOT working

by GrandFather (Saint)
on Apr 01, 2020 at 07:29 UTC ( [id://11114883]=note: print w/replies, xml ) Need Help??


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

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114883]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 14:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found