Artimus has asked for the wisdom of the Perl Monks concerning the following question:
Dear Mongers!
Need your help with Cyrillic names. Here is the simple code:
then I type *C:/Users/Артём/* , ofc without "*" and it prints only the files of ./ directory - chdir fails! How can I fix this? My Username is in Cyrillic symbols and I want Perl to understand it...#!/usr/bin/perl -w use strict; use warnings; use locale; use Cyrillic; chomp (my $interest = <STDIN>); print_dir ($interest); sub print_dir { chdir shift; foreach (glob "./*"){ print $_ ,"\n"; }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cyrillic names of directories
by kcott (Archbishop) on Mar 13, 2014 at 02:20 UTC | |
|
Re: Cyrillic names of directories
by choroba (Cardinal) on Mar 12, 2014 at 18:24 UTC | |
by Artimus (Sexton) on Mar 12, 2014 at 19:27 UTC | |
|
Re: Cyrillic names of directories
by roboticus (Chancellor) on Mar 12, 2014 at 19:40 UTC | |
by Artimus (Sexton) on Mar 12, 2014 at 19:45 UTC | |
by roboticus (Chancellor) on Mar 13, 2014 at 11:17 UTC | |
|
Re: Cyrillic names of directories (Win32::Unicode)
by Anonymous Monk on Mar 13, 2014 at 03:36 UTC | |
|
Re: Cyrillic names of directories
by zentara (Cardinal) on Mar 13, 2014 at 12:23 UTC |