in reply to Re: This looks like whitespace in my CSV but doesn't seem to be
in thread This looks like whitespace in my CSV but doesn't seem to be
That gives me:
[ "My Company", "Gavin", "Henry\xC2\xA0", "ghenry\@ghenry.co.uk", "\xC2\xA1.00", ]
which isn't whitespace after all. Thanks for the Data::Dump tip. I've always used Data::Dumper. Swapping for that produces:
$VAR1 = [ 'My Company', 'Gavin', 'Henry ', 'ghenry@ghenry.co.uk', ' 1.00' ]; $VAR1 = [ 'My Company', 'Gavin', 'Henry ', 'ghenry@ghenry.co.uk', ' 1.00' ];
i.e.
next unless $fields[4]; print Dumper \@fields; $fields[4] =~ s/\s+//g; print Dumper \@fields;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: This looks like whitespace in my CSV but doesn't seem to be
by tobyink (Canon) on Sep 30, 2012 at 08:44 UTC | |
by ghenry (Vicar) on Sep 30, 2012 at 08:58 UTC | |
by ghenry (Vicar) on Sep 30, 2012 at 09:06 UTC | |
by Anonymous Monk on Sep 30, 2012 at 09:35 UTC | |
Re^3: This looks like whitespace in my CSV but doesn't seem to be
by Marshall (Canon) on Sep 30, 2012 at 10:12 UTC | |
by ghenry (Vicar) on Sep 30, 2012 at 12:40 UTC | |
Re^3: This looks like whitespace in my CSV but doesn't seem to be
by ghenry (Vicar) on Sep 30, 2012 at 08:42 UTC |