in reply to Re: More on hex pack/unpack
in thread More on hex pack/unpack
#!/usr/bin/perl open IMG, "foo.gif" or die "Couldn't open image: $!\n"; undef $/; $image = <IMG>; $hex = unpack("H*", $image); close IMG; while ($txt = substr($hex,0,32,'')) { print "'$txt'\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: More on hex pack/unpack
by Ozymandias (Hermit) on Jun 26, 2000 at 21:10 UTC | |
by BBQ (Curate) on Jun 26, 2000 at 21:29 UTC | |
|
RE: RE: Re: More on hex pack/unpack
by mdillon (Priest) on Jun 26, 2000 at 20:39 UTC | |
by BBQ (Curate) on Jun 26, 2000 at 20:43 UTC |