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 bradcathey (Prior)
on May 19, 2004 at 01:31 UTC ( #354492=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @array = qw ( 1 2 3 4 5 );
    my $num = 6;
    ...
       my ( @list, $single ) = @_;
       print @list;
    }
    
  2. or download this
    123456
    
  3. or download this
    my @array = qw ( 1 2 3 4 5 );
    my $num = 6;
    ...
       my ( $list, $single ) = @_;
       print @$list;
    }
    
  4. or download this
    12345
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2021-05-16 13:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (151 votes). Check out past polls.

    Notices?