![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: (jeffa) Re: getting output from backticksby Wookie (Beadle) |
on Jul 19, 2001 at 13:49 UTC ( [id://98019]=note: print w/replies, xml ) | Need Help?? |
Well the 256 result code should track back to a more specific error - if you check out the documentation for mount - you may find out more precisely what that error means. As for system Vs. backticks etc. - when I have to use one or the other - I generally try this sub: While this doesn't store the return code from the system call, it does allow you to treat the system call with logical operators like any other perl program Also, the return_code can easily be logged if there is an error from this sub. game(Wookie,opponent) eq 'Wookie' ? undef $problem : remove_limbs(arms,opponent);
In Section
Seekers of Perl Wisdom
|
|