Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^7: printing unitialized value of the 'do BLOCK'

by rsFalse (Chaplain)
on Dec 23, 2019 at 08:50 UTC ( [id://11110539]=note: print w/replies, xml ) Need Help??


in reply to Re^6: printing unitialized value of the 'do BLOCK'
in thread printing unitialized value of the 'do BLOCK'

Thanks for verbose opinion and bug example!
I will disagree that an 'if' should require an explicit return. And for me an 'if' statements are sometimes better than ternary, because an 'if' gives an opportunity to skip the 'else' branch, we can't skip it when using ternary op.
I think that the practice suggested in Intermediate Perl is good, and it goes along with a "don't repeat yourself" principle. And 'given/when' is still an experimental. (edited)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-28 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found