Appreciate help with this, I want the file modified and correctly printed... appreciate your help.
Code:
open (SCR, "scratch.dat") || &CgiDie ("SCRATCH could not be opened while attempting read");
@scra =<SCR>;
close (SCR);
$reps = 1;
while ($reps < 19)
{
foreach $mine (@scra)
{
chomp($mine);
($the_line, $country_number) = split (/\|/, $mine);
open (CNT, "+>country.dat") || &CgiDie ("Country list could not be opened trying to position creatures");
@ymca =<CNT>;
foreach $thine (@ymca)
{
chomp($thine);
($ln, $nm, $nr, $ne, $ea, $se, $so, $sw, $we, $nw, $mn, $tt ) = split (/\|/, $thine);
if ($ln == $country_number)
{
$mn = $the_line;
}
} # End of for each on country file
$reps++;
} # End of for each @scra - scratch
close (CNT);
} # End of while
#unlink ("scratch.dat");
&printout;
}
else
{
&signin;
}
Comment