Don't feel bad because stuff like this happens to all of us. One of the best debugging steps you can take when you hit an apparent dead end is to walk away for a while and work on something completely different before coming back for a second look. I'll bet that may be what happened here: you posted the question then came back after a bit and figured out you weren't looking where you thought you were and then everything shook out.

Coming at things with a fresh(er) perspective can help illuminate the blindingly obvious (because when you're heads down it's easy for the obvious to not be so obvious because your focus is too sharp elsewhere).

The cake is a lie.
The cake is a lie.
The cake is a lie.


In reply to Re^2: Unexpected behavior of Perl on non-breaking space in Mac environment by Fletch
in thread Unexpected behavior of Perl on non-breaking space in Mac environment by hishii2001

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.