in reply to Re^2: Perl Module Problems
in thread Perl Module Problems

On second thought, I see why you can call the @maps array within the function because the retruned values are dumped into their own arrays within the script that calls the function.

Replies are listed 'Best First'.
Re^4: Perl Module Problems
by ikegami (Patriarch) on Sep 23, 2006 at 21:03 UTC
    Bingo! When dealing with the maps of multiple games, you may want to consider a Hash of Arrays (HoA).
    my %maps; foreach my $game (qw( cstrike ... )) { $maps{$game} = [ MAP::get_game_maps($game) ]; }