in reply to Re^3: Script works in XP but not Ubuntu?
in thread Script works in XP but not Ubuntu?

The subroutine also goes into an infinite loop if the input string has unbalanced quotes. Check what you have in style_codes.csv - probably something not quite right there.

There are some very good modules for reading CSV files which would handle such errors without going into an infinite loop. They can't fix corrupt data, but they can give a useful error message. You might try Text::CSV::Simple or search CPAN for CSV for other options.

  • Comment on Re^4: Script works in XP but not Ubuntu?

Replies are listed 'Best First'.
Re^5: Script works in XP but not Ubuntu?
by Anonymous Monk on Apr 02, 2009 at 09:43 UTC
    I would say the infinite loop never ends due to faulty logic :)