Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Hope a subroutine will return undef by default

by LanX (Chancellor)
on Feb 11, 2014 at 23:58 UTC ( #1074548=note: print w/replies, xml ) Need Help??


in reply to Re^4: Hope a subroutine will return undef by default
in thread Hope a subroutine will return undef by default

IMHO its still flow control (its an exit point), so no need to hide it.

(); is fine for short lambdas, otherwise IMHO explicit is better than implicit.

YMMV! :)

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re^5: Hope a subroutine will return undef by default

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074548]
help
Chatterbox?
vrk adds oatmeal raisin cookies to the platter on the sideboard.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2017-04-24 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (437 votes). Check out past polls.