If you are on win32, check binmode.#reading local $/ = undef; #trick to read all data in one swoop open FILE, $myfile; my $hex = <FILE>; #or writing: open FILE, ">$myfile"; print FILE $tiff_data;
Hope this helps,
Jeroen
"We are not alone"(FZ)
In reply to Re: Hex format conversion in Perl
by jeroenes
in thread Hex format conversion in Perl
by mkadlec
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |