in reply to Hex Embedded Images
But when I try BBQ's code to unpack an image to hex, I receive the following error:
Too many arguments for substr near "'')" Execution aborted due to compilation errors
Suggestions from more advanced brothers ?
Perl 5.004
Debian 2.1
update 6-28-2000 : btrott pointed out that substr in Perl 5.004 is different, and provided this code (that does work with 5.004)
Thanks also to swiftone, chromatic, and of course BBQ.while ($txt = substr($hex, 0, 32)) { substr($hex, 0, 32) = ""; print "'$txt'\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Hex Embedded Images
by BBQ (Curate) on Jun 28, 2000 at 18:44 UTC | |
by ybiC (Prior) on Jun 28, 2000 at 20:48 UTC | |
by btrott (Parson) on Jun 28, 2000 at 22:24 UTC |