develooper Front page | perl.beginners | Postings from December 2002

Readdir

Thread Next
From:
Paul Kraus
Date:
December 24, 2002 06:11
Subject:
Readdir
Message ID:
004f01c2ab56$5a48e8e0$64fea8c0@pkrausxp
Correct me if I am wrong but this should return a directory listing?

use constant backupdir => "/";
opendir BACKUP, BACKUPDIR or die "Cannot open ".BACKUPDIR."!";
print "$_\n" foreach (readdir BACKUP);



Paul Kraus
Network Administrator
PEL Supply Company
216.267.5775 Voice
216-267-6176 Fax
www.pelsupply.com

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About