Hi,

I have a UNIX directory  $DIR which contains a lot of files and
subdirecotires. Now, I would

like to list all files and subdirectories in $DIR only. That means,
$File::Find should not

go into any subdirectories of $DIR and list the files and
subdirectories there as well.

So far, I have not had any luck with the option no_chdir =>0.



find ( {
        no_chdir => 0,
        wanted   => sub {

                        print "$File::Find::name\n" ;

                        }
        },
        $DIR
     );



Any ideas ?

I thank you for your efforts.


Stefan


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to