in reply to handling tab delimited files
use warnings; print " Enter the dilution factor. \n"; chomp ($df = <STDIN>); open FILE, "45well.txt" or die $!; while (<FILE>){ chomp $_; @values = split('\t', $_); $val = @values; foreach $val (@values){ print "df >>>$df<<<\n"; print "val >>>$val<<<\n"; $DNA_conc = $val * $df * 50 ; print $DNA_conc; print"\n"; } } close (FILE);
That's Tip #2 from the Basic debugging checklist.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: handling tab delimited files
by shaludr (Initiate) on May 05, 2010 at 17:05 UTC | |
by toolic (Bishop) on May 05, 2010 at 17:30 UTC |