Hi, I need to navigate a text based menu with using Net::Telnet module, capture the out put into a file and parse it. In the menu based navigation after the selection of first 2 hirercies .....when i send a key for next menu navigation ....the module seems to myterious send some "\r" / "\n" ...i can't figure out wher it is picking it from ..... hence causing me the program to navigate to wrong menus selection.... how could this be handled any help/hint is appreciated... also i observed at times the output of a previous selection is sent on subsequent selection at times. i have tried with both input_record_seperator and out_put_record_seperated ...n they haven been of much help. appreciate quick responses

In reply to Net::Telnet problems with Net::Telnet in handling inputs by ravi_sha

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.