I am writing some automation scripts utilizing Net::SSH::Expect and everything is going well. However, I have encountered a situation where there are 3 possible outputs to the command I am running. How can I use waitfor (or something similar) to deal with this, preferably in a boolean fashion.
$ssh->waitfor("ABC") or ("DEF") or ("XYZ")
Thanks in advance.