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

Re: Passing array to a subroutine

by Anonymous Monk
on Sep 13, 2017 at 14:14 UTC ( [id://1199316]=note: print w/replies, xml ) Need Help??


in reply to Passing array to a subroutine

Conceptually, a "reference" is a piece of data which refers to another piece of data somewhere else. Let's say that you have a function that takes two arguments. If, say, the second of those arguments is a reference, the subroutine has access to everything that the reference refers-to. A piece of data will not be garbage-collected as long as any references to it exist anywhere.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-24 03:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found