Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Hash of hashes

by choroba (Canon)
on Apr 06, 2013 at 00:10 UTC ( #1027233=note: print w/ replies, xml ) Need Help??

in reply to Hash of hashes

If your question was how to read the data into the hash, here is one possible way:

#!/usr/bin/perl use warnings; use strict; my $exe; my %hash; while (<>) { my ($quotas, $start, $finish) = split ' '; if (not defined $finish) { $exe = $quotas; <>; # Skip the following header. } else { $hash{$exe}{$quotas} = [ $start, $finish ]; } } print $hash{'ww.exe'}{def}[0];
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Comment on Re: Hash of hashes
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-11-26 17:04 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (703 votes), past polls