J
jenson
I want to return the output and a dos command to a scalar variable and
display it.
The following code did not work. I think I made a mistake in using the `
sign. Please advise what needs to be changed to make the following code work
in window xp.
Any help is much appreciated.
open (DATE, `echo %date%`);
$theDate = <DATE>;
close(DATE);
print "This is $theDate \n";
display it.
The following code did not work. I think I made a mistake in using the `
sign. Please advise what needs to be changed to make the following code work
in window xp.
Any help is much appreciated.
open (DATE, `echo %date%`);
$theDate = <DATE>;
close(DATE);
print "This is $theDate \n";