From 2a0c7360f0838a73a9a50699713e4561a0b437a0 Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Sat, 29 Jan 2011 11:48:10 -0700 Subject: [PATCH] Be proper: Use glob not <>. --- src/API/Log.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/Log.pm b/src/API/Log.pm index b992417..9eec84a 100644 --- a/src/API/Log.pm +++ b/src/API/Log.pm @@ -86,7 +86,7 @@ sub expire_logs } # Iterate through each logfile. - foreach my $file (<$Auto::Bin/../var/*>) { + foreach my $file (glob "$Auto::Bin/../var/*") { my (undef, $file) = split('bin/../var/', $file); # Convert filename to UNIX time.