Did you mean:
$amount = $amount * 24 * 60 * 60;
And have you tried:
$result = grep { /.+\.$suffix$/ and $time - ( $_->stat )[9] >= $amount } io($dir)->all;
$result is the file count...
In reply to Re: How can i debug compound map/grep statements just using print?
by Kenosis
in thread How can i debug compound map/grep statements just using print?
by karlgoethebier
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |