OK.. This is driving me crazy.
In package x, I have @list = ('a','b','c').
In package y, (after requiring package x), I try:
my($a,$b,$c)=();
$a = 'Here';
$b = 'Present':
$c = 'Me too';
for(@x::list){
if ($$_) {print "$_ has a value"}
}
but this does not work using 'my'.
I too have moved to stict to support mod_perl (what an excercise!).
Why do I do this? I collect form variables (stored in $a,$b,$c) but if they are in @a::list (or better yet, a comma separated database column), they are user-required (and display an error to user if missing).
Is this a bad use for symbolic references? What would you do?