in reply to reboot for cisco ap

You might want to escape the / character in the “yes/no” line.

Replies are listed 'Best First'.
Re^2: reboot for cisco ap
by james_culling (Novice) on Feb 03, 2014 at 11:12 UTC
    U mean like this $session->waitfor('System configuration has been modified. Save? yesno: \s*\z', 4) ;

      Something like

      $telnet_session->waitfor('/System configuration has been modified. Save? [yes\/no]:$/') or return $telnet_session;
Re^2: reboot for cisco ap
by james_culling (Novice) on Feb 03, 2014 at 11:12 UTC
    I am getting the blelow error now usage: $obj->re_sans_delims($matchop)