Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Changing local variables in subroutine by passing by reference?

by almut (Canon)
on Feb 29, 2008 at 10:23 UTC ( #671138=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        ...
        print "count is: ${$_[2]} , reference is: $_[2] \n";
    ...
        ${$_[2]} = 0;
        @{$_[1]} = ();
        ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2023-12-08 02:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (35 votes). Check out past polls.

    Notices?