in reply to Looking for help with decryption in Spreadsheet::ParseExcel
Comes down to something I'd like to see support for in perl: unpack on streams. So you could rewrite
while (read $fh, my $dta, 4) { my ($name, $len) = unpack "vv", $dta; read $fh, $dta, $len; $encrypted and $dta = decrypt $dta; :
to
while (my ($name, $dta) = unpack "vv/A*", $fh) { $encrypted and $dta = decrypt $dta; :
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Looking for help with decryption in Spreadsheet::ParseExcel
by Corion (Patriarch) on Jan 22, 2010 at 13:38 UTC |