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
In reply to Creating Arrays Dynamically by listanand
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |