Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2021-06-24 10:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (125 votes). Check out past polls.

    Notices?