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

Re: passing array to a sub

by Masem (Monsignor)
on Aug 25, 2001 at 15:32 UTC ( [id://107811]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub example {
        my ( $scalar1, $scalar2, @info1 ) = @_;
        ...
    }
    
  2. or download this
    &example( $scalar1, $scalar2, \@info1 ) = @_;
    ...
    ...
        my @info1 = @$arrref;
        ...
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-23 07:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found