in reply to Re^5: treat files with umlauts (utf)
in thread treat files with umlauts (utf)
It has nothing to do with the: encoding of STDIN ... encoding of @ARGV elementsCorrect.
It's only about the text used to write the script and how Perl should parse that source text.Yes, so...
use utf8; my $scandir = 'something with umlauts it it'; # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # ...is this string literal not part of the source?
It has nothing to do with flagging variables
#!/usr/bin/perl
use strict;
use Devel::Peek;
{
use utf8;
my $var = 'für';
print Dump \$var;
}
my $var = 'für';
print Dump \$var;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: treat files with umlauts (utf)
by kcott (Archbishop) on Apr 02, 2014 at 01:30 UTC | |
by hazylife (Monk) on Apr 02, 2014 at 10:54 UTC | |
by mike.scharnow (Initiate) on Apr 07, 2014 at 08:25 UTC |