Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How can I create an array that holds number of variables with values?

by runrig (Abbot)
on Dec 20, 2000 at 06:13 UTC ( [id://47525]=note: print w/replies, xml ) Need Help??


in reply to How can I create an array that holds number of variables with values?

my @array = map {0} 0..19;
  • Comment on Re: How can I create an array that holds number of variables with values?

Replies are listed 'Best First'.
Re: Answer: How can I create an array that holds number of variables with values?
by I0 (Priest) on Dec 20, 2000 at 12:24 UTC
    my @array = (0)x20;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found