When sending your stdin_data, you never send the carriage return.
Also, you only ever print/check $out for content and not $err.
I would look through the options that Net::OpenSSH offers for debugging and enable them so you can see the actual data that gets sent/received and determine from that where your script differs from the manual interaction.
In reply to Re^7: issue with code to save config on brocade swicth
by Corion
in thread issue with code to save config on brocade switch
by janasec
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |