should workpackage gen_var; use banana; my @variables = qw(one two three); my $counter = 1; foreach my $variable (@variables) { no strict; my $ns_var = caller() .'::'.$variable; *$ns_var = \banana->new($counter++); } 1;
In reply to Re^3: Importing dynamic variables
by Anonymous Monk
in thread Importing dynamic variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |