Home : Products : DBMan : Customization :

Products: DBMan: Customization: Re: [philm] SSI within html.pl: Edit Log

Here is the list of edits for this post
Re: [philm] SSI within html.pl
You may wish to use this much faster method......

Code:
sub lastx {

my $lines = 10;
my @stack = ();

open(LF, $db_file_name) or die "Error opening $db_file_name : $!\n";
while (<LF>) {
shift @stack if ($stack[$lines - 1]);
push @stack, $_;
}
close(LF);
print @stack;
}

Then just put &lastx; in html.pl

Last edited by:

RedRum: Oct 3, 2001, 5:10 AM

Edit Log: