@tables is the list of names and $x is a variable used in a for loop. I get the error that I cannot use an undefined value as an array reference on this line, yet $tablename is most definitely defined. It works after saying "no strict 'refs';" but I'm wondering if there is a way to accomplish this without soft refs. Thanks for your input.my $tablename =$$tables[$x]; my @{$tablename};
In reply to Create an array with another variable by lpoht
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |