My Variation on the same theme
use strict; use Data::Dumper; my %hours; @hours{0..23} = (0) x 24; my @siteList = qw {site1 site2 site3 site4}; my %struc; map {$struc{$_} = {%hours},} @siteList; print Dumper(%struc);
Hazah! I'm Employed! But still looking for opportunities.
In reply to Re: building a complex data structure
by osunderdog
in thread building a complex data structure
by ministry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |