in reply to Dateless in Denver...
It displays correctly because the date command is outputting it to stdout, not because of "print $mdyt".my $mdyt = `date '+%m/%d/%Y %H:%M:%S'`;
You could also say (a bit more efficient)
use POSIX; my $mdyt = strftime('+%m/%d/%Y %H:%M:%S', localtime(time));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dateless in Denver...
by jwkrahn (Abbot) on Aug 11, 2006 at 22:42 UTC |