Help for this page

Select Code to Download


  1. or download this
    my $tac_pid = open my $fh, "tac $logfile |";
    while (<$fh>) {
    ...
    }
    kill 13, $tac_pid; # SIGPIPE
    close $fh;