in reply to Re: Bit of maths between two files
in thread Bit of maths between two files
$file = shift@ARGV; $file2=shift@ARGV; open (FILE, "<$file"); while (<FILE>) { ( $x, $y, $z) = split (/\s+/, $_); } open (FILE2, "<$file2"); while (<FILE2>) { ( $x1, $y1, $z1) = split (/\s+/, $_); } open (OUT, ">output"); print OUT $x $y $z $x1 $y1 $z1; ###then do maths
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Bit of maths between two files
by bgreenlee (Friar) on Aug 05, 2004 at 15:36 UTC |