in reply to Re^2: reboot for cisco ap
in thread reboot for cisco ap

Something like

$telnet_session->waitfor('/System configuration has been modified. Save? [yes\/no]:$/') or return $telnet_session;