#### BEGIN #### $VAR215 = 'MS02-19196-A6-DCIS'; $VAR216 = 'MS02-19196-A6-INVASIVE'; $VAR217 = 'MS01-9167-A7-DCIS'; ';AR218 = 'MS06-1878-D2-DCIS #### END ####
This is why I always recommend $Data::Dumper::Useqq in such situations. Putting quotes some kind of delimiters around the variables you want to debug is of course a good thing, but if you're dealing with *lines* and have a problem, just use
use Data::Dumper; $Data::Dumper::Useqq = 1; # shows all non-printable characters print Dumper \@lines;
(I also prefer to dump a reference, this avoids the big mess of many $VAR314159...)
edit: I even have a useful mapping for vim on my homenode which lets you debug with only very few keystrokes. (for emacs it looks a bit more complicated)

In reply to Re^2: Misunderstood array behavior by tinita
in thread Misunderstood array behavior by Anonymous Monk

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.