Perl "-C" flag question
Why doesn't the "-C" flag have an option to enable the "use ut开发者_如何学Gof8"-pragma?
I guess it is because they control different aspects of encoding:
- The -C flag controls the default encoding of input and output streams read or written by the program.
- The use utf8 pragma tells the Perl parser if the source code is UTF-8. This can also be detected by a BOM in the source file.
精彩评论