Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Is it possible to do pass by reference in Perl?

by tilly (Archbishop)
on Sep 24, 2001 at 16:12 UTC ( [id://114294]=note: print w/replies, xml ) Need Help??


in reply to Is it possible to do pass by reference in Perl?

In addition to the answers above it is possible to pass arrays and hashes by reference without using a \. The way to do this is to define a function with a prototype as explained in perlsub.

For a more complete explanation I can recommend FMTYEWTK About Prototypes, which says in detail what they are, where they are buggy, and the various design flaws that make them something to avoid on the whole.

  • Comment on Re: Is it possible to do pass by reference in Perl?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-23 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found