#!/perl/bin/perl use strict; use warnings; use CGI qw/:standard/; use CGI::Carp qw(fatalsToBrowser); use File::Find; print header(); my $v_file; # get the last $pos from somewhere # It should read lines from any text file. my $path = "testme.txt"; my $pos = 0; print "Just to see the value of:***$pos ****"; open VIEWFILE, "< $path" or die "Can't open $path: $!
\n"; seek (VIEWFILE, $pos, 0) or die "Couldn't seek to $pos: $!
\n"; my $n_counter = 0; my $count = 100; while( defined($v_file = ) and $count--) { print "
$v_file

"; } if($v_file){ print "
more >>>
"; }else{ print "End"; } # save $pos somewhere for the next page view #How actualy save this, where could I do this? $pos = tell(VIEWFILE); close VIEWFILE;