home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cse.unsw.edu.au
/
2014.06.ftp.cse.unsw.edu.au.tar
/
ftp.cse.unsw.edu.au
/
pub
/
doc
/
languages
/
perl
/
nutshell
/
ch4
/
readdir
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1992-10-18
|
229 b
|
11 lines
opendir(THISDIR, ".");
@allfiles = readdir(THISDIR);
closedir(THISDIR);
print "@allfiles\n";
@allfiles = grep(!/^\.\.?$/, readdir(THISDIR));
@allfiles = grep(!/^\./, readdir(THISDIR));
@textfiles = grep(-T, readdir(THISDIR));