in reply to Re: HTTP::Response and Spreadsheet::ParseExcel
in thread HTTP::Response and Spreadsheet::ParseExcel

Passing ParseExcel(\$CONTENT) results in an out of memory error...

How do I read a binary and write it to file? syswrite doesn't seem to fly, using :

open FH, "<$temp" || die "Can't open $temp : $!\n";
syswrite (FH, $CONTENT, length $CONTENT);

(Remember, $CONTENT is the binary xls...)
Argggh!

  • Comment on Re: Re: HTTP::Response and Spreadsheet::ParseExcel

Replies are listed 'Best First'.
Re: Re: Re: HTTP::Response and Spreadsheet::ParseExcel
by vek (Prior) on Oct 15, 2003 at 23:30 UTC

    You are opening $temp for reading, not writing. Should be:

    open FH, ">$temp" or die "Can't create $temp - $!\n";
    -- vek --
      Oh geeze, don't I feel, well, blonde? Stupid? Apologies to the Monks for such an oversight. Simple things...Thanks a million for the help! J