Please read this entertaining and informative three-part story by Mark-Jason Dominus on the matter.
You're much safer to use a hash to do this trickery, as that's what it was designed for.
my %hash; $hash{Statistic::Test} = [qw(1 2 3 4)]; print Dumper \%hash;
-stevieb
In reply to Re: "used only once" for symbolic references
by stevieb
in thread "used only once" for symbolic references
by irata73
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |