![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
system() status weirdnessby monk2b (Pilgrim) |
on Mar 28, 2008 at 16:57 UTC ( #677054=perlquestion: print w/replies, xml ) | Need Help?? |
monk2b has asked for the wisdom of the Perl Monks concerning the following question:
I like to test the error status of system() when I use that function. Recently I had reason to use the module Net::SSH:Expect in a program of mine. I have noticed that the value of $? after a system() call has changed to -1.
If I comment out the line "use Net:SSH:Expect" I get the results I am use to seeing a 0 for no error and 256 for error. If I uncomment "use Net::SSH:Expect" the value of $? is -1 on error or success. I am not sure what the real issue is here. Any info would be appreciated. This is a simplistic code example of what is happening. Bob
I got 99 problems, but a @%$()_ ain't one.
Back to
Seekers of Perl Wisdom
|
|