Andy,
You need to put the CSV file handling to binary mode.
Note, though, when I did, I had to add code to break
out of the loop as the while always returned true.
This code works as you desire, I believe.
hth,
--rich
#!/usr/bin/perl
use IO::File;
use Text::CSV_XS;
$csv = Text::CSV_XS->new({'bi
Well, I've tried both the ParseWords method and the CSV_XS method to no
avail. Below is my CSV_XS script, along with a snippet from the csv
file. If you run this through the script, it fails at the second line,
where the umlaut is located. It's all very strange.
--- Begin Script ---
#!/usr/bin/per
On Tue, 25 Nov 2003, $Bill Luebkert wrote:
> You can have an array and a scalar with the same name. @_ and $_ do not
> refer to the same vrbl. $_[1] is not referring to $_ - it's referring
> to the 2nd element of @_. This is just normal Perl syntax.
Yep, writing it out more descriptively makes
I'll give this a try, hopefully it's better than ParseWords. Thanks for
the help.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jenda Krynicky
Sent: Tuesday, November 25, 2003 5:13 PM
To: [EMAIL PROTECTED]
Subject: Re: [Perl-unix-users] ParseWords and um