Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Creating 'new' subroutine.

by Anonymous Monk
on Oct 11, 2013 at 11:00 UTC ( #1057863=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Creating 'new' subroutine.
in thread Creating 'new' subroutine.

@_ is an array, an array in scalar context returns the number of elements (a number), and anumber is never a reference


Comment on Re^3: Creating 'new' subroutine.
Replies are listed 'Best First'.
Re^4: Creating 'new' subroutine.
by Lennotoecom (Pilgrim) on Oct 11, 2013 at 11:15 UTC
    yes but
    @a = ();
    $b = {@a};
    will create a reference to a hash
        "@_ is an array, an array in scalar context returns the number of elements (a number), and anumber is never a reference"
        that was an answer for that comment, I didnt imply creating a
        reference out of a number.
        so, I don't understand what is your point.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (14)
As of 2015-07-29 13:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls