Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

(ar0n) Re: (jeffa) Re: Reference on calling to a function

by ar0n (Priest)
on Dec 02, 2001 at 23:10 UTC ( [id://128997]=note: print w/replies, xml ) Need Help??


in reply to (jeffa) Re: Reference on calling to a function
in thread Reference on calling to a function

And what that does is create an anonymous array from the list between the brackets and return a reference to it. So:
my @array = qw/1 2 3 4/; myfunc( \@array );
and
myfunc( [ qw/1 2 3 4/ ] );
are functionally equivalent.

[ ar0n -- want job (boston) ]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-25 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found