Perl: Unicode Tutorial 🐪
Unicode Encoded Perl Source Code
If your Perl script is encoded in UTF-8 , then you need to declare it, like this:
use utf8;
for processing unicode string, you need at least perl 5.14, released in 2011.
use v5.14;
use strict; use utf8; # processing Unicode string my $xx = 'I ★ you'; $xx =~ s/★/♥/; print "$xx\n"; # I ♥ you
Set Input Output Etc to Unicode
run perl with perl -C