Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: Regexp mystery (to me)

by barkingdoggy (Initiate)
on Mar 03, 2008 at 21:00 UTC ( [id://671716] : note . print w/replies, xml ) Need Help??

in reply to Re: Regexp mystery (to me)
in thread Regexp mystery (to me)

Thank you. That space joining the lines together is the problem. BOY, IS MY FACE RED! Mystery explained!

Replies are listed 'Best First'.
Re^3: Regexp mystery (to me)
by dragonchild (Archbishop) on Mar 03, 2008 at 21:27 UTC
    That may have been the problem in this specific bug, but you should really use Text::xSV instead of parsing CSV files with a regex. Regex-based solutions cannot parse CSV files correctly in many cases.

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?