Your File::Tail object is referred to using $file. The variable $log probably doesn't refer to a File::Tail object. use strict 'vars'; would probably catch also catch that $line hasn't been pre-declared, unless you're declaring $line at a broader scope and not showing us.
Updated to reflect that it's $log that is being misused, not $line.
Dave
In reply to Re^3: Help w/ regex in filename
by davido
in thread Help w/ regex in filename
by dcthehole
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |