in reply to Re: Simple iteration problem
in thread Simple iteration problem
#!/usr/bin/perl open TAB, '<', 'test.txt' or die "Cannot open 'test.txt' $!"; <TAB>; $seed = 1.04; while (<TAB>){ @tab = split ' '; $diff = $tab[0] - $seed; if ($diff >= 0.1) {print "@tab\n"; $seed eq $tab[0]} else {next}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Simple iteration problem
by roboticus (Chancellor) on Nov 29, 2007 at 16:51 UTC | |
|
Re^3: Simple iteration problem
by toolic (Bishop) on Nov 29, 2007 at 14:59 UTC |