if(defined (my $temp = `cmd.exe /c date /t`)) {
print "TEMP = $temp\n";
} else {
die "Command failed: $!";
}