iskinner has asked for the wisdom of the Perl Monks concerning the following question:
In my crash course Perl lesson of porting a decade plus old application running on a Unix server to run on a Windows 2003 server, I have made extensive use of Google to resolve and learn about features of the code with which I was unfamiliar.
This has generally worked well for me, but is failing in this one regard. In several places in the code there is a reference to $?. It is almost always after a system call using the open() function, usually to SQL*Plus in this application's case. It seems to be involved in exception handling as it is generally used in code such as this:
$v_error = $?/256; if ($v_error) {...}
So can somebody kindly point me to or provide a basic understanding on what $? is actually referencing I would really appreciate it. What does this actually do under the hood. I have found that searching Google for a '?' to be rather fruitless.
Thank You
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $? What does this reference?
by kyle (Abbot) on Apr 09, 2008 at 19:10 UTC | |
|
Re: $? What does this reference?
by FunkyMonk (Bishop) on Apr 09, 2008 at 19:11 UTC | |
|
Re: $? What does this reference?
by locked_user sundialsvc4 (Abbot) on Apr 09, 2008 at 20:55 UTC | |
by dave_the_m (Monsignor) on Apr 09, 2008 at 21:32 UTC | |
by friedo (Prior) on Apr 09, 2008 at 22:23 UTC | |
by Anonymous Monk on Apr 10, 2008 at 02:42 UTC |