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


in reply to Re: Binary files
in thread Binary files

Actually, you'd better use $/ (not $\) to slurp a file.
my $xlsfile = do { local $/; <XLSFILE>; }