It sounds like all you could possibly mean is the prompt where you type, before you hit enter, is where this is happening. If so, I can’t see how it has nothing anything to do with Perl. On OS X you can open the prefs for the Terminal with ⌘, then click the Advanced tab and make sure you have UTF-8 or something sane set. Mmmm… I just tested and found it to do what you describe, sort of.

moo@cow~>perl
while ( <STDIN> ) { print "Got: $_" }
^D
假借字 # <- pasted three ideograms
Got: 假借字
假借  # <- pasted same three and hit delete
Got: 假借
假借  # <- pasted same three and hit delete twice
Got: 假

So characters before the first appear to take two deletes to delete, with a phony/floating whitespace appearing between each contiguous characters, but they are actually deleted the first time, just erroneously displayed. This isn’t Perl’s fault, pretty sure, but some quirk in the Terminal. I would also like to know how to prevent it though I never saw it before. I messed around with switches -CSD too with no change in behavior.


In reply to Re: Deleting Chinese characters while reading by Your Mother
in thread Deleting Chinese characters while reading by alexharv074

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.