in reply to Parsing MS SQL CSV export with Text::CSV_XS
#!/usr/bin/perl use strict; use warnings; open(my $fh, '<', 'file.csv') or die $!; { local $/ = \1; for (1 .. 10) { # first 10 bytes of the file my $byte = <$fh>; print join("\t", ord($byte), $byte), "\n"; } }
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing MS SQL CSV export with Text::CSV_XS
by andyford (Curate) on Oct 22, 2008 at 19:33 UTC | |
by Limbic~Region (Chancellor) on Oct 22, 2008 at 20:09 UTC | |
by andyford (Curate) on Oct 22, 2008 at 21:49 UTC | |
by ig (Vicar) on Oct 22, 2008 at 22:10 UTC | |
by procura (Beadle) on Oct 27, 2008 at 11:03 UTC |