in reply to Any way to binmode <>

You activate binmode like this binmode FILEHANDLE. Here are some examples:

open FILE, "<file.bin" or die "Oops perl says $!\n"; binmode FILE; my $buffer; while (read(FILE,$buffer,1024)) { # do stuff to $buffer, a 1kB chunk of binary data } # you can also binmode standard file handles STDIN, STDOUT, STDERR binmode STDOUT; print $binary_data; binmode STDIN; # get binary stuff from STDIN

Hope this helps

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print