in reply to Re^2: variable as hash name
in thread variable as hash name
Why not simply have "Bet01", "Bet05", ... as keys in a hash? For example:%Bet01 = ( 230 => 2, 238 => 5, 224 => 1,); %Bet05 = ( 101 => 2, 103 => 2, 0 => 4, );
my %bets = ( 'Bet01' => { 230 => 2, 238 => 5, 224 => 1 }, 'Bet05' => { 101 => 2, 103 => 2, 0 => 4 }, );
In Section
Seekers of Perl Wisdom