Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: building a complex data structure

by osunderdog (Deacon)
on Jun 20, 2006 at 16:29 UTC ( [id://556456]=note: print w/replies, xml ) Need Help??


in reply to building a complex data structure

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-19 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found