I'm getting a very peculiar error when I load the open pragma before I load the Text::CSV_XS module.
C:\strawberry>perl -MText::CSV_XS -Mopen=:encoding(UTF-8) -e 1 C:\strawberry>perl -Mopen=:encoding(UTF-8) -MText::CSV_XS -e 1 Bareword found where operator expected at C:/strawberry/perl/site/lib/ +Text/CSV_XS.pm line 3, near "1 H" (Missing operator before H?) syntax error at C:/strawberry/perl/site/lib/Text/CSV_XS.pm line 3, nea +r "1 H" BEGIN not safe after errors--compilation aborted at C:/strawberry/perl +/site/lib/Text/CSV_XS.pm line 23. Compilation failed in require. BEGIN failed--compilation aborted. C:\strawberry>perl -Mopen=:encoding(ASCII) -MText::CSV_XS -e 1 Bareword found where operator expected at C:/strawberry/perl/site/lib/ +Text/CSV_XS.pm line 3, near "1 H" (Missing operator before H?) syntax error at C:/strawberry/perl/site/lib/Text/CSV_XS.pm line 3, nea +r "1 H" BEGIN not safe after errors--compilation aborted at C:/strawberry/perl +/site/lib/Text/CSV_XS.pm line 23. Compilation failed in require. BEGIN failed--compilation aborted. C:\strawberry>head -23 C:/strawberry/perl/site/lib/Text/CSV_XS.pm package Text::CSV_XS; # Copyright (c) 2007-2011 H.Merijn Brand. All rights reserved. # Copyright (c) 1998-2001 Jochen Wiedmann. All rights reserved. # Portions Copyright (c) 1997 Alan Citterman. All rights reserved. # # This program is free software; you can redistribute it and/or # modify it under the same terms as Perl itself. # HISTORY # # Written by: # Jochen Wiedmann <joe@ispsoft.de> # # Based on Text::CSV by: # Alan Citterman <alan@mfgrtl.com> # # Extended and Remodelled by: # H.Merijn Brand (h.m.brand@xs4all.nl) require 5.005; use strict; C:\strawberry>
What's causing this problem?
I'm running Strawberry Perl version 5.14.2, open version 1.08, and Text::CSV_XS version 0.85.
Jim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |