Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: passing arrays to subroutines

by Anonymous Monk
on Apr 13, 2011 at 14:22 UTC ( #899199=note: print w/replies, xml ) Need Help??


in reply to Re: passing arrays to subroutines
in thread passing arrays to subroutines

# an array, any array my @bunchOfData = (); # Subroutine: trythis - shows how to pass an array sub trythis { my @array = @_; print "@array\n"; } # where the subroutine is called to do something with the array &trythis(@bunchOfData);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://899199]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2017-05-23 17:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?