Modify change_password to return a status, true(1) if it succeeded or false(0) otherwise. Then check the return value in the main loop:
my @fail_servers; for my $server (@servers) { # do your thing with $server push @failed_servers, $server unless change_password($server); }
In reply to Re^3: How do I get expect.pm to ignore special characters?
by sn1987a
in thread How do I get expect.pm to ignore special characters?
by amagana
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |