Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Why is my result empty?

by Marshall (Canon)
on Mar 20, 2014 at 05:49 UTC ( [id://1079050]=note: print w/replies, xml ) Need Help??


in reply to Why is my result empty?

Another idea:
use strict; my $final_res=''; open FILE, $infile; while(my $final_line=<FILE>) { if($final_line=~/^SeqID/) { my $final_line=<FILE>; chomp $final_line; my @split_final=split(/\t/, $final_line); my $final_res = $split_final[7]; $final_res=~s/D/M/g; $final_res=~s/U/M/g; #print $final_res."\n"; } } close FILE; print $final_res."\n"; ################ # different coding ################ use strict; my $infile = ''; #some file open (FILE, "<", $infile) or die "unable to open $infile $!"; while(my $line=<FILE>) { chomp $line; my ($token) = (split(/\t/, $line))[7]; $token=~s/D/M/g; print "Token= ", $token, "\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found