On Wed Mar 26 10:52:31 2008, NKH wrote:
Show quoted text> As described in the documentation:
>
> my $bin_data = read_file( $bin_file, binmode => ':raw' ) ;
> NOTE: this actually sets the O_BINARY mode flag for sysopen. It
> probably should call binmode and pass its argument to support other
> file modes.
>
>
Add me to that too. I would love to use File::Slurp but as all my files
are utf8 encoded I would need to do the decoding afterwards. Obviously I
can do that myself afterwards but not without a reassignment (unless I
use scalar_ref => 1 attribute).
BTW, I would not just set the ":utf-8" flag because horrible things will
happen if it is not utf-8 encoded - use ":encoding(UTF-8)" which checks
the utf-8 encoding is correct.
Martin
--
Martin J. Evans
Wetherby, UK