Front page | perl.beginners |
Postings from February 2002
From: Frank 'Olorin' Rizzi
February 27, 2002 01:50
Message ID: firstname.lastname@example.org
I am just starting with Perl,
so the following question will probably appear simple to most of you.
I am trying to get a Perl program to provide me with a listing of the files
stored on the machine (where the program runs).
The environment is a Win machine..
Say I have something like the following:
use Win32API::File ":ALL";
my $dir = $_;
next unless (GetDriveType($_) == DRIVE_FIXED);
What would you put where the //HERE line is in order to get a directory
listing of the $dir ?
Is there anyway I can have this directory listing to immediatly expand
subdirectories, or should I make it a recursive sub ?
Thank you in advance,
Frank 'Olorin' Rizzi
by Frank 'Olorin' Rizzi