Question with Perl flag "-C"

Why is the "-C" flag unable to enable the "use utf8" pragma?

+4
source share
1 answer

I assume this is because they control various aspects of coding:

  • The - C flag controls the default encoding of input and output streams read or written by the program.
  • use utf8 pragma tells the Perl parser if the source code is UTF-8. This can also be detected using the specification in the source file.
+6
source

All Articles