I took the question to refer to a web diary of sorts and not the apahce web server logs. I would suggest using seperate files for each entry and use a counter file to sequentially number your entries and use that number as part of the filename. I recmommend that you start at 100000 for the counter file, then you can easily search for filenames that contain 6 digits in the future. It will be safe to slurp the smaller files as needed and it is easy to pull from one point to the next with this:
# 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>) { $weblog_data .= $_; } $weblog_data = "<br>"; } }

That is just an example of how to loop through to get them but the code is far from complete. Using the number method will make your next and previous links easier to create as well. For me working with several files in this manner is easier then working with one long file.

In reply to Re: Anti-slurp weblog by trs80
in thread Anti-slurp weblog by newrisedesigns

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.