john brown wrote:
9. $telnet->waitfor('/\$ $/i');
11. $output = $telnet->waitfor('/adsl> \$ $/i');
Login successful
--> (There is a space after the arrow to the right)
Line 9 says to wait for a dollar-sign and space.
Line 11 says to wait for "adsl> " and a dollar-sign and space.
The last line quoted above has two hyphens, a right-angle
bracket, and a space. No dollar sign.
Why are you waiting for a dollar sign if the prompt uses
an angle bracket?
-Joe