Usage:#!/usr/bin/env perl use warnings; use strict; while(<>) { #... do something with the latest line, $_ }
tail -f /var/log/apache2/access.log | myscript.pl
In reply to Re^2: using perl to format tail -f
by perlfan
in thread using perl to format tail -f
by danmcb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |