in reply to Re^2: Array of Arrays with Variable Names
in thread Array of Arrays with Variable Names
## this is an example, works just as well if these arrays come from a +require'd file my @array1 = qw(a b c); my @array2 = qw(d e f); ## again, just an example, works just as well if this comes from GetOp +t my $opt_f = '@array1, @array2'; ## here is the magical and evil eval my @combined = eval "$opt_f"; print "@combined\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Array of Arrays with Variable Names
by JWM (Initiate) on Aug 25, 2006 at 18:16 UTC | |
by mreece (Friar) on Aug 25, 2006 at 18:35 UTC | |
|
Re^4: Array of Arrays with Variable Names
by Not_a_Number (Prior) on Aug 25, 2006 at 18:05 UTC |