# set our variable to store the logs in my $weblog_data; # set the default for the number of entries per page my $number_entries = 10; # this could be dynamic with changes # starting point for entries my $starting_point = '100123'; # need to be pulled foreach ($starting_point..$starting_point_for_entries+$number_entries) { if (-e "$_.wl") { open(WEBLOG,"$_.wl") or warn $!; while () { $weblog_data .= $_; } $weblog_data = "
"; } }