in reply to Re: Misunderstood array behavior
in thread Misunderstood array behavior

#### 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)

Replies are listed 'Best First'.
Re^3: Misunderstood array behavior
by Anonymous Monk on Sep 22, 2008 at 02:14 UTC
    Thank you. That is a valuable tip.

    Do you see any reason not to always use tchomp in place of chomp?

      AZed did, when you asked the same question above.