|Just another Perl shrine|
Re^3: How can i debug compound map/grep statements just using print?by Kenosis (Priest)
|on Dec 01, 2012 at 21:39 UTC||Need Help??|
You have the following:
In two days, there are 2 * 24 * 60 * 60 or 172800 seconds, thus it seemed that the following was needed:
since one day equals 24 * 60 * 60 or 86400 seconds. Additionally, the following worked when I ran it using the above formula for $amount:
An equivalent search can be done using File::Find::Rule:
And the following, too, but grepping on days old instead of using mtime:
All three methods produced the same result, even when an equivalent constant was used for the days in the last grep.
After adjusting the $amount formula, your original code produced the same result, too:
Thus, all four code snippets produced identical results.