in reply to Using a scalar as an array name
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using a scalar as an array name
by rvosa (Curate) on May 15, 2005 at 21:56 UTC | |
by Animator (Hermit) on May 15, 2005 at 22:01 UTC | |
by Fletch (Bishop) on May 15, 2005 at 22:03 UTC |