Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by ikegami (Patriarch)
on Feb 29, 2008 at 11:12 UTC ( #671147=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub func {
       print("f-pre:  $_[0], $_[1]\n");
    ...
    print("pre:    $x, $y\n");
    func($x, $y);
    print("post:   $x, $y\n");
    
  2. or download this
    pre:    3, 4
    f-pre:  3, 4
    f-post: 5, 6
    post:   5, 6
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2023-12-08 03:17 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?