Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
inputopen (COM, "2_info.txt"); open (MEAN, ">" . "/2_mean_info.txt"); foreach (<COM>){ last LINE if /^d$/;?? if (/^\d+\.\d+.*/) {$value = (split /\|/, $_)[0];} $additive_GU_value += $value; $num_GU_processed++ ; } # foreach close (COM); print "Add = $additive_GU_value\n";
thanks10| 20| 45| 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: while question
by davidrw (Prior) on Jun 02, 2005 at 14:42 UTC | |
by Anonymous Monk on Jun 02, 2005 at 15:00 UTC | |
|
Re: while question
by Fletch (Bishop) on Jun 02, 2005 at 14:37 UTC | |
|
Re: while question
by cool_jr256 (Acolyte) on Jun 02, 2005 at 14:39 UTC | |
|
Re: while question
by Anonymous Monk on Jun 02, 2005 at 14:34 UTC |