Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Why is my result empty?

by Marshall (Abbot)
on Mar 20, 2014 at 05:49 UTC ( #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
Node Status?
node history
Node Type: note [id://1079050]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2018-05-25 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?