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.
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Binary files
by dragonchild (Archbishop) on Mar 16, 2005 at 15:23 UTC | |
by elusion (Curate) on Mar 16, 2005 at 15:42 UTC | |
Re: Binary files
by jmcnamara (Monsignor) on Mar 16, 2005 at 16:10 UTC | |
Re: Binary files
by BrowserUk (Patriarch) on Mar 16, 2005 at 15:40 UTC | |
by tlm (Prior) on Mar 17, 2005 at 14:55 UTC | |
by gellyfish (Monsignor) on Mar 17, 2005 at 15:21 UTC | |
by BrowserUk (Patriarch) on Mar 17, 2005 at 16:00 UTC |
Back to
Seekers of Perl Wisdom