develooper Front page | perl.beginners | Postings from February 2002

How to declare signed char in Perl?

Thread Next
February 26, 2002 01:50
How to declare signed char in Perl?
Message ID:
I have a problem with a program I did in Perl :
I use the function system(@args) to launch an external command,
and then get the exit value : $exit_value = $? >> 8.
That runs fine, the problem is the exit value can be -1, so $exit_value
should be a signed char. When the program returns -1, and I print
$exit_value, I get I guess either it's an unsigned char, or an there a way to declare ma variable as a signed char?

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About