On Tue, 2007-04-10 at 13:19 +0200, Craig Schneider wrote: > Hi Guys > > How could I exec a 'dir' command on a dos system and put the output in > an array, sort by date and the files that are older than 3 days be moved > into a folder called 'history'
Look at module File::Find this should be able to help you. For a simplification of the other process you can use opendir function to read the files in a directory one by one and then issue the stat as in the other answer. -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/