Since $name contains a string, @$name will access a package variable - not a lexical variable introduced with my.$name = sprintf "%s%s",'descriptor_array',$array_no; print @$name;
Either use our, or use a hash (or array) of arrays, instead of using the names directly.
In reply to Re: Array reference problem
by JavaFan
in thread Array reference problem
by hda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |