in reply to SSH by thread

elsif($match =~ /assword/)
I hope that is a typo lol ;)

Replies are listed 'Best First'.
Re^2: SSH by thread
by Happy-the-monk (Canon) on May 14, 2015 at 07:08 UTC

    "/assword/" ... I hope that is a typo lol ;)

    More likely it is a simple shortened /[Pp]assword/ .

    Cheers, Sören

    Créateur des bugs mobiles - let loose once, run everywhere.
    (hooked on the Perl Programming language)

      Dunno about that - OP is also $ssh->waitfor('assword',5);

        Dunno about that - OP is also $ssh->waitfor('assword',5);

        Same thing. The waitfor() method takes a regex as well.

        Cheers, Sören

        Créateur des bugs mobiles - let loose once, run everywhere.
        (hooked on the Perl Programming language)

      I just thought it was kind of funny with the whole 'assword', any words coming from there, you dont want to be around to hear and will likely throw an warning if not handled correctly LOL /sarcasm off