Terminals are tricky
C:\> hexdump 2echo >2 C:\> hexdump 2 00000000: 45 43 48 4F 20 69 73 20 - 6F 6E 2E 0D 0A |ECHO is o +n. | 0000000d; C:\> od 2 0000000 041505 047510 064440 020163 067157 006456 000012 0000015 C:\> od -tc 2 0000000 E C H O i s o n . \r \n 0000015 C:\> perl -e"print qq~$_\r~ for 1 .. 3" 3 C:\> perl -e"print qq~$_\r~ for 1 .. 3" >2 C:\> hexdump 2 00000000: 31 0D 32 0D 33 0D - |1 2 3 | 00000006; C:\> od 2 0000000 006461 006462 006463 0000006 C:\> od -tc 2 0000000 1 \r 2 \r 3 \r 0000006 C:\> od -ta 2 0000000 1 cr 2 cr 3 cr 0000006 C:\>od -abcx 2 0000000 1 cr 2 cr 3 cr 061 015 062 015 063 015 1 \r 2 \r 3 \r 0d31 0d32 0d33 0000006

In reply to Re: understanding print by Anonymous Monk
in thread understanding print by pdeshpan

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.