Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Perl encoding problem

by dave_the_m (Monsignor)
on Dec 13, 2021 at 22:14 UTC ( [id://11139594] : note . print w/replies, xml ) Need Help??


in reply to Perl encoding problem

If you want to use literal utf8 characters in your source code (literal strings, regexes etc), then you need to tell the perl interpreter that the source code should be treated as utf8 by adding 'use utf8;' at the top of your script.

Dave.