use bytes is almost never a good idea; in essence, it tells perl to consider any strings that perl knows are utf8 encoded as if each byte of the encoded form were a separate character. It's a relic of 5.6's failed approach to unicode, IMO. Leave it off, and so long as you have no exposure any data perl thinks is utf8 encoded, you will have no compatibility problems. The only semi-invisible place utf8 may creep in with newer perls (5.8.1+) is if you have a source file that is UTF-16 encoded, with proper byte order marks at the beginning; in such a file, perl will have literal strings that contain high-bit characters encoded as utf8.

In reply to Re: Warning: Unicode bytes! by Anomynous Monk
in thread Warning: Unicode bytes! by BrowserUk

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.