Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Value of a statement with modifier

by fergal (Chaplain)
on Jan 23, 2007 at 00:14 UTC ( [id://596007]=note: print w/replies, xml ) Need Help??


in reply to Value of a statement with modifier

It becomes quite clear when you rewrite it as

sub foo { if ($_[0]) { return 'hello'; } # go off the end of sub without return so return the last expression }

Log In?
Username:
Password:

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

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

    No recent polls found