Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by ikegami (Patriarch)
on Feb 29, 2008 at 11:12 UTC ( [id://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 browsing the Monastery: (2)
As of 2024-04-25 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found