Guest_imported
New member
- Jan 1, 1970
- 0
Why doesn't this variable assignment for $a work ? The result should be today 11 not 0 ???
Thanks a lot for help.
THE CODE:
#! /usr/bin/perl -w
my $cmd="date -u +%e";
my $a=system($cmd);
print "*************\n";
print "$a\n";
print "*************\n";
THE RESULT:
11
*************
0
*************
Thanks a lot for help.
THE CODE:
#! /usr/bin/perl -w
my $cmd="date -u +%e";
my $a=system($cmd);
print "*************\n";
print "$a\n";
print "*************\n";
THE RESULT:
11
*************
0
*************