in reply to
Getting The Date Command to Redirect to File
system
just returns success or failure, you cannot capture the output of the command you are running. Try backticks:
my $date = `date +%x_%T`;
[download]
FWIW - you don't have to have the shell involved to do what you are attempting, there are
many
date functions/modules.
--
vek
--
Comment on
Re: Getting The Date Command to Redirect to File
Select
or
Download
Code
In Section
Seekers of Perl Wisdom