Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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: (4)
As of 2024-04-14 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found