Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Is it possible to do pass by reference in Perl?

by Russ (Deacon)
on Mar 05, 2002 at 19:32 UTC ( #149478=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub mySub{
      my $Arg = shift;
    ...
    sub mySub2{
      my ($Arg) = @_;
    }
    
  2. or download this
    sub test{
      $_[0] = 'New Value';
    ...
    print "$Var\n";
    test ($Var);
    print "$Var\n";
    
  3. or download this
    Hi there
    New Value
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2021-05-07 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (95 votes). Check out past polls.

    Notices?