http://www.perlmonks.org?node_id=148018

Zo has asked for the wisdom of the Perl Monks concerning the following question:

Hello all...
I've searched and searched before asking here and found nothing, so here I go...

I am trying to catch the system date on a Windows2000 server. When I do this, it works:

<code>print system("DATE /T");<code>
I see Wed 2/27/2002

But I want to capture the input and use it to print to a text file.. such as:
$x = system("DATE /T");
print FILENAME $x;


but what I get in the text file is the number zero (0).

Any ideas, thoughts, etc?
FYI- Win2000, ActiveState Perl 5.6...
thanks in advance for all help.

Zo.