Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Preventing Use of uninitialized value

by choroba (Cardinal)
on Sep 20, 2021 at 19:59 UTC ( [id://11136891]=note: print w/replies, xml ) Need Help??


in reply to Re: Preventing Use of uninitialized value
in thread Preventing Use of uninitialized value

Removing spaces around // doesn't change its (unfortunate) precedence. Parentheses are needed.
($alldata->{cont} // '<undef>') ne ($_->{cont} // '<undef>')
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^3: Preventing Use of uninitialized value
by pryrt (Abbot) on Sep 20, 2021 at 20:04 UTC
    ++Thanks. I should've tested before posting, but thought it was easy enough syntax to get without verification; my bad. (original node edited to not propagate misinformation)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-03-29 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found