#! /root/bin/perl
use strict;
use warnings;
use subs;
sub square;
sub read;
sub dist;
my $r; my $r2;
my $xh; my $yh; my $zh;
my $f1; my $FILE1; my $hline; my @hlines;
$f1=&read;
my $x1; my $y1; my $z1;
my $f2; my $FILE2; my $pline; my @plines;
$f2=&read;
open (FILE1, "$f1") or die "Argh! File not opened! $!";
open (FILE2, "$f2") or die "Argh! Second file not opened! $!";
while (<FILE1>)
{ $hline=<FILE1>;
push (@hlines,$hline);
}
while (<FILE2>)
{ $pline=<FILE2>;
push (@plines,$pline);
}
close FILE2;
close FILE1;