in reply to search folder and delete certain files with perl

Maybe just use the system tool?

$ find /var/opt/xim/syslogs -maxdepth 1 -type f -name "Syslogd*" -mtim +e +0.5 -delete

(Run without -delete first, to make sure you picked the right files!!)

Replies are listed 'Best First'.
Re^2: search folder and delete certain files with perl
by locked_user sundialsvc4 (Abbot) on Dec 08, 2011 at 22:23 UTC

    Yup... what came to my mind right away was find and maybe also xargs.   (Both in a Unix/Linux environment.)