> my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst);
> ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
why not combine the 2 line as :
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
> $year+=1900;
> $date = $year.$mday.$mon;
>
>
Thanks That worked perfectly.
On Saturday 13 July 2002 17:50, George Schlossnagle wrote:
> do
>
> $date = sprintf("%04d%02d%02d", $year,$mday,$mon);
>
> btw, ddmm is not sortable, you may want to use mmdd.
>
> George
>
> On Saturday, July 13, 2002, at 05:38 PM, Steve wrote:
> > I have th
do
$date = sprintf("%04d%02d%02d", $year,$mday,$mon);
btw, ddmm is not sortable, you may want to use mmdd.
George
On Saturday, July 13, 2002, at 05:38 PM, Steve wrote:
> I have this snippet of code:
>
>
> use warnings;
> use strict;
> use diagnostics;
> my $date;
> my $base_url;
> my
I have this snippet of code:
use warnings;
use strict;
use diagnostics;
my $date;
my $base_url;
my $full_url;
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst);
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
$year+=1900;
$date = $year.$mday.$mon;
$date is gettin