|laziness, impatience, and hubris|
System call on MSDosby Zo (Scribe)
|on Feb 27, 2002 at 19:58 UTC||Need Help??|
Zo has asked for the wisdom of the Perl Monks concerning the following question:
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.