in reply to Answer: How do I read an entire file into a string?in thread files
It is worth noting that File::Slurp does NOT support binmode
Are you sure? From the pod:
If you set the binmode option, then the file will be slurped in binary
my $bin_data = read_file( $bin_file, binmode => ':raw' ) ;
Unixish Shell Scripting languages
Other (post in comments)
Results (286 votes). Check out past polls.