http://qs321.pair.com?node_id=11143014


in reply to Re^2: Is there a way to make these two regex lines cleaner?
in thread Is there a way to make these two regex lines cleaner?

You could also use File::BOM to open the file and then pass the file handle to Spreadsheet::Read.

# untested use File::BOM qw( :all ); use Spreadsheet::Read; open_bom(my $fh, $file, ':utf8'); my $book = ReadData ($fh, parser => "csv");