in reply to simple question

date adds a "\n" at the end of its outout
my $yr = `date -u +%Y`; #get the output of year my $mm = `date -u +%m`; #get the output of month my $dd = `date -u +%d`; #get the output of day chomp $yr; chomp $mm; chomp $dd;
hint:
perldoc -f localtime

Replies are listed 'Best First'.
Re: Re: simple question
by Happy-the-monk (Canon) on Mar 04, 2004 at 21:46 UTC
    just to second esskars hint:     perldoc -f localtime
    will point you to a much smoother way of determining time and date.