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 getting concatennated with 2002136 and I need 20021306.

I've done a perldoc -f localtime but no joy.  How do I get the day to be two 
digit?


-- 
Steve

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to