Do these three versions all behave differently?
use open qw( :encoding(UTF-8) :std );
use open qw( :encoding(UTF8) :std );
use open qw( :utf8 :std );
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Firstly,
:utf8only markes the text as UTF-8 it does not check that it is valid. See this post on PerlMonks for information.:encodingis an Extension Layer to PerlIO, perlperldoc perliolThe other two questions are answered in the FAQ
perldoc perlunifaqThe
openpragma (ie.,use open) only sets the default PerlIO layers for input and output;:stddoes the following,So
:stdis a subpragma (open.pm specific) that sets the Standard Streams to receive Unicode Input perl:utf8as above.