Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Perl Module Problems

by davidov0009 (Scribe)
on Sep 23, 2006 at 19:58 UTC ( [id://574541]=note: print w/replies, xml ) Need Help??


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) ]; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://574541]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-24 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found