http://qs321.pair.com?node_id=673435


in reply to Re^2: read()
in thread read()

This way you effectively pwn all of the chr(10) in your binary file... which is bad. The better "slurping" solution is to undef$/ and then using <>;