in reply to How can i debug compound map/grep statements just using print?
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can i debug compound map/grep statements just using print?
by karlgoethebier (Abbot) on Dec 01, 2012 at 19:57 UTC | |
by Kenosis (Priest) on Dec 01, 2012 at 21:39 UTC | |
by karlgoethebier (Abbot) on Dec 02, 2012 at 00:03 UTC | |
by Kenosis (Priest) on Dec 02, 2012 at 01:55 UTC | |
by karlgoethebier (Abbot) on Dec 01, 2012 at 23:22 UTC | |
by Kenosis (Priest) on Dec 01, 2012 at 23:59 UTC | |
by karlgoethebier (Abbot) on Dec 02, 2012 at 00:20 UTC | |
|