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>; }