in reply to Re^3: handling tab delimited files
in thread handling tab delimited files
The code has started to work finally.. but the problem is it is giving the output in one column and splitting all the values.
so for the line :
0.250 0.413 0.432 0.345 0.786 1.001 0.987the output is :
125 206.5 216 172.5 393
and so on
how should i put it back together? This is the code i used :
use warnings; print " Enter the dilution factor. \n"; chomp ($df = <STDIN>); open FILE, "96well.txt" or die $!; while (<FILE>){ chomp $_; @values = split('\t', $_); foreach $val (@values){ $DNA_conc = $val * $df * 50 ; print $DNA_conc; print"\n"; } } close (FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: handling tab delimited files
by almut (Canon) on May 05, 2010 at 17:47 UTC | |
by shaludr (Initiate) on May 05, 2010 at 20:41 UTC | |
by almut (Canon) on May 05, 2010 at 21:01 UTC | |
by shaludr (Initiate) on May 06, 2010 at 05:49 UTC | |
by toolic (Bishop) on May 05, 2010 at 20:52 UTC | |
|
Re^5: handling tab delimited files
by shaludr (Initiate) on May 05, 2010 at 17:53 UTC | |
by graff (Chancellor) on May 06, 2010 at 06:49 UTC |