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

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


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.

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://908092]
[Corion]: Discipulus: Being out in nature is great, at least as long as you have a dry place to sleep and a warm fire ;)
[Discipulus]: my whishlist include more "elements" anyway

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2017-02-24 09:20 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (353 votes). Check out past polls.