
Kenosis
User
Mar 14, 2013, 9:21 PM
Views: 126
|
|
Re: [bossanova352] Searching hash for values that make part of a key
|
|
|
Perhaps the following will be helpful:
use strict; use warnings; my $cov; for my $header ( keys %sequences ) { if ( ($cov) = $header =~ /cov_([\d.]+)/ and $cov <= 50 and $cov >= 5 ) { print "$header => $sequences{$header}\n"; } }
(This post was edited by Kenosis on Mar 14, 2013, 9:22 PM)
|