snape has asked for the wisdom of the Perl Monks concerning the following question:
Hello all,
I am interested to get all the keys in the hash of hashes within a particular range. for example:
if I read the first file into hash of hashes as
where col stands for the column of the file, then I am interested to search all entries in the hash of hashes which are between range of two values for col2 and col3. col2 and col3 are numeric and col1 is a alpha numeric. I trying to check the entry of the col1 i.e. by$hash{$col1}{"$col2_"."$col3"} = "col4\tcol5"
Any help in this regard will be highly appreciated. I tried looking some of the examples but I didn't get any.if (exists $hash{$col1}){ if (){ ## Dont know what I should fill here to check the values of col2 a +nd col3 in a particular range } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Search in Hash of Hash for the range of values
by ikegami (Patriarch) on Sep 01, 2010 at 21:42 UTC | |
|
Re: Search in Hash of Hash for the range of values
by perlpie (Beadle) on Sep 02, 2010 at 00:01 UTC | |
by snape (Pilgrim) on Sep 02, 2010 at 08:03 UTC | |
by aquarium (Curate) on Sep 02, 2010 at 01:03 UTC | |
|
Re: Search in Hash of Hash for the range of values
by graff (Chancellor) on Sep 02, 2010 at 00:27 UTC | |
|
Re: Search in Hash of Hash for the range of values
by marinersk (Priest) on Sep 02, 2010 at 03:51 UTC | |
by marinersk (Priest) on Sep 02, 2010 at 05:46 UTC | |
by Marshall (Canon) on Sep 02, 2010 at 19:59 UTC | |
|
Re: Search in Hash of Hash for the range of values
by Marshall (Canon) on Sep 02, 2010 at 03:11 UTC |