in reply to how to use Encode qw(all)
Depends on what exactly you mean by "input". If you're referring to data read from an external file, using the PerlIO layer (your latter two variants) is certainly the way to go — except that reading from a file ("<:...") would decode, not encode, as you say in your question; in order to encode you'd need to write to the file...
See also the open pragma, -C and utf8.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to use Encode qw(all)
by swilting (Beadle) on Apr 05, 2010 at 15:44 UTC |