Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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.
Re^4: Creating 'new' subroutine.
by Lennotoecom (Monk) 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 avoiding work at the Monastery: (5)
As of 2014-07-26 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (178 votes), past polls