in reply to Re^4: regular expression matching in expect
in thread regular expression matching in expect

I did try using exp_continue; statement after every send but that didnt seem to help either.
Did you try returning it?

what advantage will Net::ssh offer that Use Expect doesnt?
More clean Perl code? You will need only to do things in ssh instead of running ssh manually and agreeing with it.

Sorry if my advice was wrong.
  • Comment on Re^5: regular expression matching in expect