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

In reply to Re^2: Binary files by elusion
in thread Binary files by amt

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":