in reply to How to subtract date by 1 day
Using this example you should be able to format it any way you'd like. POSIX should be included in your distro, so you wont need to install a module.
update
What zaxo said...
#!/usr/bin/perl use strict; use warnings; use POSIX qw(strftime); my $today = time; my $yesterday = $today - 60 * 24 * 60; my $formatted = strftime "%m/%d/%Y", ( localtime($yesterday) ); print "yesterday = $formatted\n";
update
What zaxo said...
Ted
--
"That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
--Ralph Waldo Emerson
--
"That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
--Ralph Waldo Emerson
|
---|
In Section
Seekers of Perl Wisdom