Help for this page

Select Code to Download


  1. or download this
    my @logentries = ();
    my $toss = 1;
    ...
    # decide what to do with each entry,
    # handling XML content with a suitable module when necessary
    }
    
  2. or download this
    my $entry = "";
    while (<LOGDATA>) {
    ...
    $result = &handleEntry( $entry ) if $entry;
    # and replace the "foreach" loop in the previous version
    # with "sub handleEntry { ... }"