I know this line works:
But how do I assign the line above into a variable? e.g.
While compiling it, I got this:
How to make it work? Thanks for the help.
Code:
print "OK!! Child($$, $pid) $res ended with ", $? >> 8; print "\n";
But how do I assign the line above into a variable? e.g.
Code:
$logMsg .= "OK!! Child($$, $pid) $res ended with ", $? >> 8;
$logMsg .= "\n";
While compiling it, I got this:
Code:
Useless use of right bitshift (>>) in void context at...
How to make it work? Thanks for the help.