Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: subroutine reference parameters

by gnosti (Friar)
on Jun 04, 2011 at 01:38 UTC ( #908092=note: print w/ replies, xml ) Need Help??


in reply to Re: subroutine reference parameters
in thread subroutine reference parameters

Hi,

You posted a link to the documentation for 'each'. Perhaps you should re-read it! When called in scalar context, the function returns a key. When called in list context, it returns a key-value pair.


Comment on Re^2: subroutine reference parameters
Replies are listed 'Best First'.
Re^3: subroutine reference parameters
by choroba (Canon) on Jun 04, 2011 at 09:54 UTC
    OK, but ($key) = is not scalar context.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-08-29 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (343 votes), past polls