Yes, all_files works. Its in the doc, and i missed it. Its my bad.
Rob, I tried the code snippet you mentioned, apparently it doesnot return
anything under the directory.
Thanks, Nishi.
On 7/25/06, Dr.Ruud <[EMAIL PROTECTED]> wrote:
Rob Dixon schreef:
> use strict;
> use warnings;
>
> my @dir = do {
> opendir my $dh, 'C:\build\Sample\NewDir' or die $!;
> grep -f, readdir $dh;
For newbies, maybe put a comment here that the closedir() is implicit.
> };
>
> print "$_\n" foreach @dir;
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>