No, it isn't related to perl, but it is understandable that you don't know that.

What it is related to is the terminal "emulator" you are using. They vary somewhat, as does the means of dealing with this issue. The reason is that the emulator can capture and modify various key codes.

For example, I use the XFCE Terminal. If I go to Preferences->advanced, there is the option: "Backspace key generates" and the choices include Control-H, which is what you are getting (they also include "Escape sequence", which would be the normative ascii value of backspace, and ascii del, which would make backspace == delete).

Probably you are using the gnome-terminal, but I think if you look around in it you will be able to find something similar. Most likely, your Ubuntu and your RedHat are configured differently. You may have more luck on a linux forum, many people there will understand perl and be more familiar with little OS details like this.

MidLifeXis's suggestion is probably a good one, since the shell is intermediary between the terminal and perl.

In reply to Re^2: STDIN Odd Bevahior in Linux Environments by halfcountplus
in thread STDIN Odd Bevahior in Linux Environments by bichonfrise74

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.