Hi, Thanks for your suggestion :) For some reason it gives me a weird output, compared to yours?
C:\Users\Andy>perl test2.pl Malformed UTF-8 character (unexpected non-continuation byte 0xc2, imme +diately after start byte 0xc0) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xc4, imme +diately after start byte 0xc2) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xe0, imme +diately after start byte 0xc4) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xe2, imme +diately after start byte 0xe0) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xe4, imme +diately after start byte 0xe2) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xc7, imme +diately after start byte 0xe4) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xe7, imme +diately after start byte 0xc7) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xc9, imme +diately after start byte 0xe7) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xca, imme +diately after start byte 0xc9) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xc8, imme +diately after start byte 0xca) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xcb, imme +diately after start byte 0xc8) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xe9, imme +diately after start byte 0xcb) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xea, imme +diately after start byte 0xe9) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xe8, imme +diately after start byte 0xea) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xeb, imme +diately after start byte 0xe8) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xcf, imme +diately after start byte 0xeb) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xcc, imme +diately after start byte 0xcf) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xce, imme +diately after start byte 0xcc) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xef, imme +diately after start byte 0xce) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xec, imme +diately after start byte 0xef) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xee, imme +diately after start byte 0xec) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xd6, imme +diately after start byte 0xee) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xd4, imme +diately after start byte 0xd6) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xd2, imme +diately after start byte 0xd4) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xf6, imme +diately after start byte 0xd2) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xf4, imme +diately after start byte 0xf6) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xf2, imme +diately after start byte 0xf4) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xdc, imme +diately after start byte 0xf2) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xdb, imme +diately after start byte 0xdc) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xd9, imme +diately after start byte 0xdb) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xfc, imme +diately after start byte 0xd9) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xfb, imme +diately after start byte 0xfc) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xf9, imme +diately after start byte 0xfb) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0x3f, imme +diately after start byte 0xf9) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected continuation byte 0xab, with no +preceding start byte) in subroutine entry at test2.pl line 10. Malformed UTF-8 character (unexpected continuation byte 0xbb, with no +preceding start byte) in subroutine entry at test2.pl line 10. Malformed UTF-8 character (unexpected non-continuation byte 0xf3, imme +diately after start byte 0xed) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xf1, imme +diately after start byte 0xf3) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xd1, imme +diately after start byte 0xf1) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xe1, imme +diately after start byte 0xd1) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xe9, imme +diately after start byte 0xe1) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xf3, imme +diately after start byte 0xe9) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xfa, imme +diately after start byte 0xf3) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xc1, imme +diately after start byte 0xfa) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xc9, imme +diately after start byte 0xc1) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xcd, imme +diately after start byte 0xc9) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0xd3, imme +diately after start byte 0xcd) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (unexpected non-continuation byte 0x0a, imme +diately after start byte 0xd3) in subroutine entry at test2.pl line 1 +0. Malformed UTF-8 character (1 byte, need 2, after start byte 0xda) in s +ubroutine entry at test2.pl line 10. _[]__________________________________________________________ C:\Users\Andy>
Any ideas? TIA! Andy

In reply to Re^2: tr{}{} doesn't wanna work.. what am I doing wrong? by ultranerds
in thread tr{}{} doesn't wanna work.. what am I doing wrong? by ultranerds

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.