If the data shown is the product of your complete script (and since you didn't post your complete script, we can't tell) then your question needs clarification.

Please read the documentation for whatever vers. of SSH 1 you're using... and perhaps read about ping as well, because "0.00% packet loss" means the server on the ip you pinged IS alive -- you got responses. Ditto the match between the numbers of packets transmitted and received.

Update: 1 Kudos to Prior vinoth.ree appears to have identified the most likely SSH module supporting $prematch.... ++.



If you didn't read the docs, shame!


In reply to Re: How to use "$ssh->before()" by ww
in thread How to use "$ssh->before()" by hxbsy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.