Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: pass by value vs reference and return by value

by ww (Archbishop)
on Oct 27, 2013 at 16:07 UTC ( [id://1059916]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use 5.016;
    use warnings;
    ...
    
    say "\t\t Back in main, after subr has returned.";
    say "\t\t $result";
    
  2. or download this
     In sub, $local_deref: abc
              And now, after cat, $local_deref: abc def
                     Back in main, after subr has returned.
                     abc def
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found