Q: How do I get the date/time for this time tomorrow?
A: sleep 86400; print scalar localtime;
Did you see Ilya Zakharevich's response to that? Here it is:
This implementation is very pessimal speed-wise. Here is an important optimization:
sub tomorrow_date { sleep 86_400; return localtime(); sleep -86_400; }
In reply to Re: Perl Personalities
by Dominus
in thread Perl Personalities
by georgebailey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |