Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Data structure assistance

by Zaxo (Archbishop)
on Oct 16, 2002 at 13:58 UTC ( [id://205713]=note: print w/replies, xml ) Need Help??


in reply to Data structure assistance

That looks like a hash of arrays:

my @domains = qw( thisun.com thatun.net ); my %time_of_ip; $time_of_ip{ @domains } = []; for (@domains) { push @{$time_of_ip{$_}}, timings($_); } sub timings { my $ip = shift; #whatever }

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-26 05:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found