agoth has asked for the wisdom of the Perl Monks concerning the following question:
for ('02'..'03') { my $month = $_; $bucket{$month} = (); for ('00' .. $mons{$month}) { my $day = $_; $bucket{$month}{$day} = (); for ('00' .. '24') { my $hour = $_; $bucket{$month}{$day}{$hour} = (); for ('00' .. '59') { my $minute = $_; $bucket{$month}{$day}{$hour}{$minute} = [0,0]; } } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash initialisation
by davorg (Chancellor) on Mar 26, 2001 at 19:14 UTC | |
by tilly (Archbishop) on Mar 27, 2001 at 06:34 UTC | |
by agoth (Chaplain) on Mar 26, 2001 at 19:30 UTC |