Thread View: pl.comp.lang.perl
2 messages
2 total messages
Started by karraso
Fri, 25 Mar 2016 08:09
problem z wyszukaniem nazwy pliku
Author: karraso
Date: Fri, 25 Mar 2016 08:09
Date: Fri, 25 Mar 2016 08:09
17 lines
1602 bytes
1602 bytes
Witam,
Jak w temacie.
plik nazywa się
España SA._ESPTE.xml
ze względu na "ñ" mam problem z:
opendir (DIR, 'c:/tmp/' ) or die "$!";
push @files, grep {/\.xml$/} readdir DIR;
print "@files\n";
akcja dzieje się w win7.
Jeśli zmienię "ñ" na n lub ń to jest ok.
co tu kombinować?
Kombinowałem z encode z use utf8 ale nic nie pomagało.
ps
Pod linuxem jest ok :)
pozdrawiam
Re: problem z wyszukaniem nazwy pliku
Author: Leszek Dubiel
Date: Thu, 14 Feb 2019 15:19
Date: Thu, 14 Feb 2019 15:19
16 lines
1471 bytes
1471 bytes
W dniu 25.03.2016 o 09:09, karraso pisze:
> Jeśli zmienię "ñ" na n lub ń to jest ok.
> co tu kombinować?
> Kombinowałem z encode z use utf8 ale nic nie pomagało.
A moduł tego nie załatwi? Path::Tiny:
for (path("c:/tmp/")->children) {
warn "$_\n";
}
--
Lustra Dubiel Vitrum
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads