Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: how do i obtain blast result from the given file

by rjt (Curate)
on Jun 17, 2013 at 20:15 UTC ( #1039465=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $how_many = 10;
        while (<$fh>) {
            if (/^(.+?)\|(.+?)\| (.+?)\s+(\d+)\s+(\d+e[+-]\d+)$/) {
    ...
                last if --$how_many == 0;
            }
        }
    
  2. or download this
        my @hits; # Keys in order
        my $how_many = 10;
        while (<$fh>) {
    ...
            printf "%-5s %-55s %5s\n",
                $_->{col1}, $_->{desc}, $_->{score};
        }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2022-05-21 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?