Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Data Structure Design

by MZSanford (Curate)
on Aug 17, 2001 at 13:04 UTC ( [id://105636]=note: print w/replies, xml ) Need Help??


in reply to Data Structure Design

in the spirit of KISS, here is my easy solution :
my %clusters = ( cluster1 => ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'h7'], cluster2 => ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'h7'], # ... ); foreach my $clust (sort keys %clusters) { foreach my $ind (0..5) { &process_1_6($clusters{$clust}[$ind]); } &process_7($clusters{$clust}[6]); }

always more than one way to skin an amoebae
-- MZS

Log In?
Username:
Password:

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

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

    No recent polls found