Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: passing arrays to subroutines

by perlfan (Curate)
on Mar 16, 2005 at 14:47 UTC ( #439959=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @array = qw(a b c d e f);
    my @new_array = do_something(\@array); #<- note the "\"
    ...
      }
      return @new;
    }
    
  2. or download this
    $VAR1 = a
    $VAR2 = b
    ..etc
    
  3. or download this
    $VAR1 = [a,b,c,d,e,f]
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2014-07-26 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls