http://www.perlmonks.org?node_id=1057863


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

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.