Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Pass array, then clear

by Anonymous Monk
on Jan 16, 2018 at 14:22 UTC ( [id://1207353]=note: print w/replies, xml ) Need Help??


in reply to Pass array, then clear

One difficulty inherent in the design of the Perl language is that there is no mandatory declaration in the syntax of the language of what parameters a function takes, and whether the parameter should be passed by-value or by-reference. The statement $a = 2; can work in several different ways, and exactly how it works is determined at runtime. In traditional languages, the compiler would generate different code depending on how a parameter is to be passed. In Perl, "reference" is a data-type. And there is really nothing to be done about it: that's just how this language works.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-19 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found