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 ( #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
Node Status?
node history
Node Type: note [id://1199316]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2018-02-22 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (288 votes). Check out past polls.

    Notices?