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));
In reply to Re: Dateless in Denver...
by Thelonius
in thread Dateless in Denver...
by perlNinny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |