Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^11: Does @{ } copy arrays?

by ikegami (Patriarch)
on Oct 30, 2009 at 14:55 UTC ( [id://804176]=note: print w/replies, xml ) Need Help??


in reply to Re^10: Does @{ } copy arrays?
in thread Does @{ } copy arrays?

Params are passed by reference. The elements of @_ are aliased to the arguments passed.
>perl -le"sub f { $_[0]=456; } $x=123; f($x); print $x;" 456
>perl -le"sub f { $_[0]=3; } $#a=2; f($#a); print $#a;" 3

it seems that those in the know are trying to fix it appropriately (or have already done so).

I wrote a fix. It was reviewed by Rafael who fixed a big in it and committed it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2024-04-23 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found