in reply to Month info from 'date'
Substitute for print as necessary.my $thismonth = (localtime)[4]; my $lastmonth = ($thismonth == 0)? 11 : $thismonth-1; print $monthname[$lastmonth], "\n";
HTH
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Month info from 'date'
by Masem (Monsignor) on Jun 23, 2001 at 00:58 UTC | |
|
Re: Re: Month info from 'date'
by Dr. Mu (Hermit) on Jun 23, 2001 at 20:09 UTC | |
by d00fuss (Novice) on Jun 25, 2001 at 19:23 UTC |