my $in_file = "c:/some/path/chady.pdf"; $|++; undef $/; open(IN, $in_file) || die "No open"; binmode(IN); my $buffer = ; close(IN); my $in_file_len = -s $in_file; binmode(STDOUT); print <