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

Re: hash slice ? No thanks, I'm about to return...

by Ovid (Cardinal)
on Feb 19, 2005 at 16:06 UTC ( [id://432738]=note: print w/replies, xml ) Need Help??


in reply to hash slice ? No thanks, I'm about to return...

From perldoc perlsub: The return value of a subroutine is the value of the last expression evaluated by that sub...

The value of an assignment operation in list context is generally the value(s) being assigned. Thus, when you're assigning a list to something, that's the value of the assignment and therefore that's the return value of the subroutine.

Cheers,
Ovid

New address of my CGI Course.

  • Comment on Re: hash slice ? No thanks, I'm about to return...

Replies are listed 'Best First'.
Re^2: hash slice ? No thanks, I'm about to return...
by leriksen (Curate) on Feb 20, 2005 at 00:39 UTC
    Thanx Ovid, now I guess I'll have to research what circumstances are not covered by the "generally"
    ....starts shuffling through rudely stacked piles of perldoc covering his desk...

    ...it is better to be approximately right than precisely wrong. - Warren Buffet

Log In?
Username:
Password:

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

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

    No recent polls found