use File::Find ();
&File::Find::find sub {
if ( -f $_ ) {
&do_something("${File::Find::dir}/$_") or
warn qq{Could not do_something() to "${File::Find::dir}/$_: $!"\n};
# does &do_something to the file in passing the absolute path.
File::Find will change your cwd to do the find, so you cou
e path
push(@g_filesArray,$File::Find::name);
}
-Original Message-
From: Subrahmanyam Vadlamani [mailto:[EMAIL PROTECTED]
Sent: 4 août, 2003 15:10
To: perl-unix
Subject: [Perl-unix-users] How to recurse through a directory
Hi:
I would like to recurse through a directory and do
somethi
use File::Find;
check cpan.org for example
--- Subrahmanyam Vadlamani
<[EMAIL PROTECTED]> wrote:
> Hi:
>
> I would like to recurse through a directory and do
> something with the files in the directory (and all
> sub-directories).
>
> What is the most efficient way of doing this? What
> are so
Hi:
I would like to recurse through a directory and do
something with the files in the directory (and all
sub-directories).
What is the most efficient way of doing this? What
are some modules that I could use?
If someone has some example code, I would very much
appreciate it.
thanks
Satish
Hi:
I would like to recurse through a directory and do
something with the files in the directory (and all
sub-directories).
What is the most efficient way of doing this? What
are some modules that I could use?
If someone has some example code, I would very much
appreciate it.
thanks
Satish
_