Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: problem in loop breakby bliako (Monsignor) |
on Dec 01, 2020 at 19:17 UTC ( [id://11124468]=note: print w/replies, xml ) | Need Help?? |
That's really bad (sorry for being harsh). You execute the command twice if successful. Consider saving the return code of shapcs() somewhere and THEN check if it was success and print messages appropriately. Note that shapcs() can fail in a number of ways which ideally must all be checked and appropriate error codes be returned so that the caller knows exactly what went wrong and not just blame "Authentication Failed" which is only 1 of the error cases. bw, bliako
In Section
Seekers of Perl Wisdom
|
|