in reply to Using binmode on ARGV filehandle?
If you want specifically want binmode (not utf8) use ":raw" instead. The book suggests this may only be workable in newer versions of Perl. Works for me using v5.8.5#!/usr/bin/perl use open IN => ":utf8"; # Now all file handles opened for input (including ARGV) # will use utf8 encoding unless told otherwise while (<>) { do_whatever( $_ ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using binmode on ARGV filehandle?
by graff (Chancellor) on Jun 02, 2006 at 22:36 UTC |