🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.perl
2 messages
2 total messages Started by karraso Fri, 25 Mar 2016 01:09
problem z wyszukaniem nazwy pliku
#51473
Author: karraso
Date: Fri, 25 Mar 2016 01:09
16 lines
428 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
#51476
Author: Leszek Dubiel
Date: Thu, 14 Feb 2019 16:19
15 lines
289 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