in reply to Array reference problem
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Array reference problem
by hda (Chaplain) on Jul 07, 2009 at 16:14 UTC | |
by JavaFan (Canon) on Jul 07, 2009 at 19:36 UTC |