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

How to declare signed char in Perl?

Thread Next
From:
Philibert
Date:
February 26, 2002 01:50
Subject:
How to declare signed char in Perl?
Message ID:
20020226094624.5926.qmail@onion.perl.org
Hi,
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 255...so I guess either it's an unsigned char, or an
integer...is there a way to declare ma variable as a signed char?
Thanks




Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About