Gossamer Forum
Home : Products : Links 2.0 : Customization :

Last link problem please help :(

Quote Reply
Last link problem please help :(
I am having a last link problem and cannot figure out what might be the problem. Below is the code I am using

my $LASTX = 5;
open (DB, "<$db_file_name") or &cgierr("unable to open database:$db_file_name.\nReason: $!");
my @lines = <DB>;
close DB;
for ($i=$#lines; $i>=$#lines - $LASTX; $i--) {
chomp $lines[$i];
@tmp = &split_decode ($lines[$i]);
%tmp = &array_to_hash (0, @tmp);
$lastlink .= &site_html_link (%tmp);
}

And the result:

Message : fatal error: Modification of non-creatable array value attempted, subscript -2 at nph-build.cgi line 963.


Any help very much appreciated,

Thank you,

Lpluby
Subject Author Views Date
Thread Last link problem please help :( lpluby 1108 Mar 15, 2000, 8:00 AM
Post Re: Last link problem please help :(
ffeingol 1083 Mar 15, 2000, 8:38 AM
Post Re: Last link problem please help :(
lpluby 1084 Mar 16, 2000, 7:14 AM