开发者

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.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜