http://qs321.pair.com?node_id=841292

listanand has asked for the wisdom of the Perl Monks concerning the following question:

Hi perl monks,

I have a situation where I need to create array dynamically (on the fly). I have specific names also by which the arrays need to be created. Here's an example code snippet:

my @array_names = qw (a b c d e f);

Now, I try the follwing:

for my $name (@array_names) {

@$name=();

}

So far so good. But then when I try to access one of the arrays, say @a, the compiler complains.

Any suggestions? Thanks in advance.

Andy