I would like to have an array, its size will be passed as an argument in runtime. And I want to intialize it. How should I do? Thanks.
You don't have to allocate memory/buckets to arrays in perl if thats what you are thinking. Perl dynamically adds more buckets as needed and when needed. There might be special reasons to allocate some memory to an array before actually adding data into the array, but I don't know what those reasons might be.