开发者

Perl "-C" flag question

开发者 https://www.devze.com 2023-01-23 14:25 出处:网络
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:

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

精彩评论

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