in reply to Re^2: Help w/ regex in filename
in thread Help w/ regex in filename
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
|
|---|