in reply to Re: Perl is returning... odd results... from regular expressions. Things matching when they shouldn't, and stuff like that.
in thread Perl is returning... odd results... from regular expressions. Things matching when they shouldn't, and stuff like that.

I'll keep that module in mind, though I actually DO want to do it myself if possible. I'm also making this for someone else, so I want him to be able to modify it in my absense if needed (so it'll be commented like mad).

Thanks for the link! Again, I'm new at this, so I probably wouldn't have found a good one on my first try.

  • Comment on Re^2: Perl is returning... odd results... from regular expressions. Things matching when they shouldn't, and stuff like that.

Replies are listed 'Best First'.
Re^3: Perl is returning... odd results... from regular expressions. Things matching when they shouldn't, and stuff like that.
by Tanktalus (Canon) on Jan 11, 2007 at 16:37 UTC

    Actually, if you want someone else to be able to modify it in your absence, you'll even more want to use the module. The module's interface is way better than trying to read the code that actually does the work.

    Really.

    I mean it.

    In fact, if you want to really make your life easy, you may want to use DBD::CSV where you can just use a bit of SQL to insert into a new CSV table some sort of SELECT from the old CSV table. A lot of magic will happen under the covers, but it's magic that you don't need to write, maintain, comment, or play with. Same goes for your friend ;-) What you're left with is some really easy-to-tweak code that your friend should have much less problem playing with.