zhujian0805 has asked for the wisdom of the Perl Monks concerning the following question:
How to know the status of a command invoked by open function? When running the following script, I get an unexpected result! open(PS,"ls . 2>/dev/null|") or die "$!"; close PS; $t = $?>>8; print "$t","\n"; # perl openclose.pl 141 #this should be 0 as the command execution is succesful
|
|---|