Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: need help to create array dynamically

by dasgar (Curate)
on Jan 23, 2013 at 20:04 UTC ( #1015012=note: print w/ replies, xml ) Need Help??

in reply to need help to create array dynamically

Perhaps I'm misunderstanding your post, but it kind of sounds like you're trying to determine the size of the array for the purpose of creating an array with that number of elements. In Perl, you don't need to know the planned/needed size of the array to create the array. In your code, you just need something like my @list; to create an empty array named 'list'.

You might find the following perldocs useful:

Comment on Re: need help to create array dynamically
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2015-11-30 21:35 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (783 votes), past polls