Newsgroups: fj.lang.perl
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!newsbase.nisiq.net!houou.ufnet.com!tamaru-news!kuee-news!odins-suita!chiba-ns!sakunami!yagi!news
From: "YOSHIFUJI, Hideaki" <yoshfuji@ecei.tohoku.ac.jp>
Subject: Re: [Q]How to get directory with perl for win32
X-Nntp-Posting-Host: eiw02.ec.ecei.tohoku.ac.jp
Content-Type: text/plain; charset=iso-2022-jp
Message-ID: <3382FD52.7390FF79@ecei.tohoku.ac.jp>
X-Priority: 3 (Normal)
Sender: news@ecei.tohoku.ac.jp
Reply-To: yoshfuji@ecei.tohoku.ac.jp
Content-Transfer-Encoding: 7bit
Organization: School of Engineering, Tohoku University, JAPAN
References: <5ls1fi$98g$5@omega00.fc.obayashi.co.jp>
Mime-Version: 1.0
Date: Wed, 21 May 1997 13:49:06 GMT
X-Mailer: Mozilla 4.0b4 [en] (Win95; I)
Lines: 42
Xref: galaxy.trc.rwcp.or.jp fj.lang.perl:1977
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.perl&nb=1977&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$B5HF#1QL@!wElKLBg3XEE>p7O$G$9!#(B

Akira Tsukagoshi wrote:
> $B!Z(BPerl$B%U%!%$%kFbMF![(B
>   (1)
>      system("dir \****\***** " ); #$BAjBP%Q%9;XDj(B
>  $B$^$F$O!"(B
>   (2)
>      system("dir c:\****\***** " ); #$B@dBP%Q%9;XDj(B
> 
>      $B>e5-$I$A$i$b$@$a$G$7$?!#(B

$BC1$K%/%)!<%HJ8;zNs$NLdBj$@$m$&$H;W$C$F(B

system ("dir \\***\\*****");
system ("dir c:\\***\\*****");

$B$G$d$C$?$i!"(Bjperl 4.0.1.8 $B$G$O(B ok $B$G$7$?$,!"(Bjperl for win32 
(4.0.1.8) $B$G$O$@$a$G$7$?!#(B(?)

$B$G$9$,!"$?$H$($G$-$F$b$3$l$G$OI=<($5$l$k$@$1$G$9$M!#G[Ns$K(B
$B<hF@$7$?$$$N$J$i(B

opendir(DIR, "c:/foo/bar/");
@dir = readdir(DIR);
closedir(DIR);

$B$"$k$$$O(B

opendir(DIR, "c:\\foo\\bar\\");
@dir = readdir(DIR);
closedir(DIR);

$B$G$$$1$k$H;W$$$^$9!J:G8e$N(B / $B$d(B \\ $B$O$"$C$F$b$J$/$F$b2D!K!#(B

$BCm0U!'F@$i$l$k$N$O%G%#%l%/%H%j%(%s%H%j$G$"$j!"%U%k%Q%9$G$O$"$j$^$;$s!#(B

-- 
$B5HF#1QL@(B (YOSHIFUJI, Hideaki)
School of Engineering, Tohoku University, JAPAN

<URL:http://www.ecei.tohoku.ac.jp/~yoshfuji/>
