Don't know much about dos.
But under unix you may got the files older than 3 days by this way,

chdir '/the/path';
@files = grep { time - (stat)[9] > 24*60*60*3 } glob "*";


2007/4/10, Craig Schneider <[EMAIL PROTECTED]>:

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'

Thanks

Craig

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/





--
mailto: [EMAIL PROTECTED]
http://home.arcor.de/jeffpang/

Reply via email to