my @maps_$game = HLDS::GameMaps("$game");
You already were told that it's a bad idea to use a variable as a variable name. In this case it's better to use a hash:
my @games=qw( cstrike dod czero gearbox ricochet dmc tfc valve ); my %maps; foreach my $game (@games) { $maps{$game} = HLDS::GameMaps("$game"); } ## Visualize the data structure use Data::Dumper; print Dumper \%maps;
--
David Serrano
In reply to Re^3: Perl Module Problems
by Hue-Bond
in thread Perl Module Problems
by davidov0009
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |