#!/usr/bin/perl -w use strict; use utf8; open(my $fh, '<:encoding(UTF-8)', $ARGV[0]) or die "Can't read $ARGV[0]: $!\n"; my $fileln = <$fh>; $fileln =~ tr/’/'/; ...[ do something with $fileln ]...
In case you don't realize it, you didn't save your changes anywhere or do anything with them.
In reply to Re: "Asciitizing" utf8
by ikegami
in thread "Asciitizing" utf8
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |