Kautilya has asked for the wisdom of the Perl Monks concerning the following question:
I tried following code to print the file names but it gives error.
Error isuse IO::ALL $some_dir = "/cygdrive/e/Uns-Root/Sev"; $dir = io($some_dir); while (my $io = $dir->read) { print $io->name, "\n" if $io->is_file; }
Can't locate IO/ALL.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/sit +e/lib .) at e:\Uns-Root\DirStru.pl line 4. BEGIN failed--compilation aborted at e:\Uns-Root\DirStru.pl line 4.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Direcctory Traversal
by Corion (Patriarch) on Sep 22, 2005 at 16:47 UTC | |
Re: Direcctory Traversal
by sk (Curate) on Sep 22, 2005 at 17:20 UTC | |
Re: Direcctory Traversal
by marto (Cardinal) on Sep 22, 2005 at 16:27 UTC | |
Re: Direcctory Traversal
by radiantmatrix (Parson) on Sep 22, 2005 at 19:27 UTC |