in reply to dir / file split

This may help find any Solaris gotchas (perlsolaris for 5.004 - I think).

Otherwise, might you be able to use the system's find command? That looks like a scary pattern to be determining files to delete :).

Portability of glob function in a modern perl may help, too. Can you be more specific about how you are selecting files to "clean"?

Replies are listed 'Best First'.
Re^2: dir / file split
by camelcom (Sexton) on Sep 28, 2007 at 13:27 UTC
    I'm using MJD's dir_walk function from Higher Order Perl and the root dir for the clean is a very specific area of the filesystem: the regex shown is only being used to extract the filename from the full filepath returned by readdir... Thanks!
      Interesting. I've that book for a while, and decided to pick it up last night...that was actually the application I was perusing.