Re: [Perl-unix-users] How to recurse through a directory and do somethingwith each file

2003-08-14 Thread Bayard Bell
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

RE: [Perl-unix-users] How to recurse through a directory

2003-08-04 Thread Francis Paulin
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

Re: [Perl-unix-users] How to recurse through a directory and do something with each file

2003-08-04 Thread Anthony Ettinger
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

[Perl-unix-users] How to recurse through a directory

2003-08-04 Thread Subrahmanyam Vadlamani
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

[Perl-unix-users] How to recurse through a directory and do something with each file

2003-08-04 Thread Subrahmanyam Vadlamani
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 _