You'll want to chomp the $logfile within your foreach.
Update: It wouldn't hurt you to use strict, either.
Another Update: You might consider using File::Find to select the log files you want.
In reply to Re: Perl File-Test Operators
by ptum
in thread Perl File-Test Operators
by gyasuda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |