http://qs321.pair.com?node_id=103152


in reply to Aging Script

try this...
$cutoff = time() - 31*24*60*60; while(</dir/to/read/*>) { unlink $_ if (stat $_)[10] < $cutoff; }
that should work... maybe replace unlink with print to test it first ;)

                - Ant
                - Some of my best work - Fish Dinner