Hi,
I am calling perl script from a Korn shell and catching the return value using $? in K shell script.
In the perl script I have followig statements. Actually my perl script does more than this but finally returns value 260 (may not be always the same number). I am coded it on Unix HP box.
--------------------
#!/usr/bin/perl
$a = 260;
exit $a ;
-----------------
It is returning value 4 instead of 260. Always returns actual value - 255. If the actual value is less than 255 then it looks fine.
All comments would be appreciated.
thanks.
Divakara.
I am calling perl script from a Korn shell and catching the return value using $? in K shell script.
In the perl script I have followig statements. Actually my perl script does more than this but finally returns value 260 (may not be always the same number). I am coded it on Unix HP box.
--------------------
#!/usr/bin/perl
$a = 260;
exit $a ;
-----------------
It is returning value 4 instead of 260. Always returns actual value - 255. If the actual value is less than 255 then it looks fine.
All comments would be appreciated.
thanks.
Divakara.