dr_jgbn has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for you help,while (<FH1>) { @num=<FH1>;} close FH1; foreach $num (@num) { chomp $num; while (<FILE2>) { @marks = split(/\t/, $_); $x=$marks[0]; $y=$marks[1]; if ($num - $y < 1) { print OUT "$x\n"; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: simple search and print
by borisz (Canon) on Feb 24, 2004 at 23:41 UTC | |
|
Re: simple search and print
by Limbic~Region (Chancellor) on Feb 24, 2004 at 23:34 UTC | |
by pzbagel (Chaplain) on Feb 24, 2004 at 23:39 UTC | |
by Limbic~Region (Chancellor) on Feb 24, 2004 at 23:43 UTC | |
by fizbin (Chaplain) on Feb 25, 2004 at 08:42 UTC |