in reply to RE: RE: Hex Embedded Images
in thread Hex Embedded Images
Yeah, I did copy it yesterday, but I still get this error:
Too many arguments for substr at ./gif2hex.perl line 17, near "'')" Execution of ./gif2hex.perl aborted due to compilation errors.
with today's code from your home node:
#!/usr/bin/perl -w # Description: Hex embedded images sample # Date: June 28, 2000 # Author: bbq@zaz.com.br # URL: http://johnny.warp.psi.br/perl/images.pl?img=text open IMG, "./arrow.gif" or die "Couldn't open image: $!\n"; binmode(IMG); undef $/; $image = <IMG>; $hex = unpack("H*", $image); close IMG; while ($txt = substr($hex,0,32,'')) { print "'$txt'\n"; } # END
Thanks for you help - hope I'm not missing something obvious.
This is definately CUFP.
ybiC
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: RE: RE: Hex Embedded Images
by btrott (Parson) on Jun 28, 2000 at 22:24 UTC |