PhoenixDown
Programmer
I'm using this code to number the guesbook entries in my database file:
But I get an ISE with that and I don't know what's wrong.
If you need to know, I use the following to call the guestbook content:
Please fix it.
- Go there!
Code:
open (TOTALENTRIES, "$vars_gen{'CGIPath'}/variables/vars_entries.cgi");
@line = <TOTALENTRIES>;
close (TOTALENTRIES);
@Backwards = reverse(@line);
$LastLine = @Backwards[0];
@LastStats = split(/\|/, $LastLine);
$LastNumber = $var1;
chomp($LastNumber);
$NextNumber = $LastNumber + 1;
} else {
$NextNumber = 1;
}
But I get an ISE with that and I don't know what's wrong.
If you need to know, I use the following to call the guestbook content:
Code:
open(DATA,"<$vars_gen{'CGIPath'}/variables/vars_entries.cgi") or die ("Unable to open guestbook entry file.");
@line = <DATA>;
close(DATA);
foreach $line (@line) {
$line =~ s/\n//g;
($var1,$var2,$var3,$var4,$var5,$var6,$var7,$var8,$var9,$var10,$var11,$var12,$var13,$var14,$var15,$var16,$var17) = split(/\|/,$line);
Please fix it.
