No, what you are using is a soft-reference, and 'use strict refs' only allows hard references.
So you have two options: either: $MyScalar = \@MyArray (a hard-reference) or 'no strict qw/refs/'.
For more information about references you can consult the perlreftut POD and/or the perlref POD
In reply to Re: Using a scalar as an array name
by Animator
in thread Using a scalar as an array name
by rvosa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |