Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: perl script

by leslie (Pilgrim)
on Jun 24, 2009 at 12:58 UTC ( [id://774384]=note: print w/replies, xml ) Need Help??


in reply to perl script

Hi firend,
You can use this code..,
use strict; use warnings; use Data::Dumper; my($File,$FILE_FH,$data,@total_data,$new,@gi); $File="./fasta.txt"; open $FILE_FH, '<', $File or die "Failed to Open File $File for $!"; $data=<$FILE_FH>; @total_data=split(/gi\|(\d+)\|/,$data); foreach $new(@total_data) { push @gi,$new if($new =~ /^\d+$/); } print Dumper @gi;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-26 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found