in reply to Writing a CSV Parser/Printer

Text::CSV is actually a pure text module. The only reason you can't install it in your local directory and use it is because it uses Autoloader to reduce its memory footprint.

Rather than write your own replacement, you only need change 3 lines in the source of Text::CSV and you can use it, which would save some work and some testing.

The three changes are:

With those changes the module takes a split second or two longer to load and uses a tad more memory, but works fine.

Hope that helps.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


Replies are listed 'Best First'.
Re: Re: Writing a CSV Parser/Printer
by Anonymous Monk on Jun 26, 2003 at 07:51 UTC

    Excellent! It does work, thanks! :)