CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [bossanova352] Searching hash for values that make part of a key: Edit Log



Kenosis
User

Mar 14, 2013, 9:21 PM


Views: 449
Re: [bossanova352] Searching hash for values that make part of a key

Perhaps the following will be helpful:

Code
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)


Edit Log:
Post edited by Kenosis (User) on Mar 14, 2013, 9:22 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives