in reply to Re^2: Perl Expect is not sending multiple commands
in thread Perl Expect is not sending multiple commands
Usually '#' indicates you are in enable mode and '>' indicates you are in normal mode (i.e. not all commands are available).
I think you can do a regex like below (untested), though there is probably a cleaner/better way to do it.
($which,$why,$match,$before,$after) = $expect_instance->expect($Timeou +t, '-re', "(#)|(>)");
Elda Taluta; Sarks Sark; Ark Arks
My deviantART gallery
|
---|
In Section
Seekers of Perl Wisdom