go ahead... be a heretic | |
PerlMonks |
Re: Re: Binary Challengeby tachyon (Chancellor) |
on Mar 19, 2002 at 10:30 UTC ( [id://152705]=note: print w/replies, xml ) | Need Help?? |
When you write while(<IMAGE>)... you will read in a chunk of image until you get to the binary for a newline char 00001010. Thus you will read in random length chunks of data. You should really use read(). You should also consider binmode which is essential on Win32 and harmless on *nix.
cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In Section
Seekers of Perl Wisdom
|
|