in reply to Watch log for string (tail -f)
I think the tail -f will continue until interrupted as other posters pointed out.
I was wondering also why you used {$path} in the line my $logFile = "{$path}/DHCPD.log.{$currentDate}" rather than the variable you created, {$logPath}?
Is this a typo?
In Section
Seekers of Perl Wisdom