laziness, impatience, and hubris | |
PerlMonks |
Re^3: regular expression matching in expectby aitap (Curate) |
on Aug 09, 2012 at 20:27 UTC ( [id://986604]=note: print w/replies, xml ) | Need Help?? |
Well, what error message do you receive? According to the documentation, near the New more Tcl/Expect-like interface of $object->expect(), you can return 'exp_continue' symbol from your callback sub to continue matching with next callback. Are you sure it won't be easier to use some SSH-related modules, for example, Net::SSH::Expect?
Sorry if my advice was wrong.
In Section
Seekers of Perl Wisdom
|
|