http://www.perlmonks.org?node_id=439978

amt has asked for the wisdom of the Perl Monks concerning the following question:

Gentlemen,

I am trying to read in an XLS file into a scalar variable. I am curious if slurping the file into scalar with this method:
while(<XLSFILE>){$xlsdata = $_;}would work, because after reading the file into the scalar, I need to insert it into a LONGBLOB field in a database.

Many thanks in advance.
amt.

perlcheat