chai6125 has asked for the wisdom of the Perl Monks concerning the following question:
if my $current_month is 10 i want my previous month i want it to be 09 instead of 9.my $current_month = strftime "%m", localtime;
How to acheive this.my $previous_month = $current_month - 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to display 10 -1 =09 In Perl
by Discipulus (Canon) on Oct 30, 2014 at 08:09 UTC | |
|
Re: How to display 10 -1 =09 In Perl
by LanX (Saint) on Oct 30, 2014 at 08:05 UTC | |
|
Re: How to display 10 -1 =09 In Perl
by Not_a_Number (Prior) on Oct 30, 2014 at 08:18 UTC | |
by chai6125 (Initiate) on Oct 30, 2014 at 09:51 UTC | |
by Anonymous Monk on Oct 30, 2014 at 10:02 UTC |