Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: getting arrays into subroutines

by Rex(Wrecks) (Curate)
on Aug 12, 2002 at 17:40 UTC ( [id://189560]=note: print w/replies, xml ) Need Help??


in reply to getting arrays into subroutines

Simple answer, you can't! You can only pass scalar values to a sub.

You can however pass references, I recomend looking at perlref.

Update: One other thing, by searching this site, or just wandering through the Code Catacombs, you will find a ton of examples on how to do this.

"Nothing is sure but death and taxes" I say combine the two and its death to all taxes!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-03-28 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found