If you are running this on *NIX box, plain old 'find' command is enough too.
~A On Tue, 9 Nov 2004, Jim wrote: > > > The following subroutine should take an input path (Dir0), > > process that directory by recursively calling itself on > > subdirectories or processing any files it contains. The > > problem I am experiencing is that in the following example > > file structure it process Dir1 correctly, but after it > > returns to process the next item in the Dir0, it improperly identifies > > Dir2 as a file, not a directory. I am sure there is probably > > a better way of doing this, however, I am somewhat of a > > newbie to Perl and would like to understand why this code > > isn't working as I am expecting it to. > > Do you really want or need to use your own recursive subroutine. Your best > bet is probably to use File::Find > Read the docs for it. Here are some good links with examples > http://perlmonks.thepen.com/217166.html > > http://www.adp-gmbh.ch/perl/find.html > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.786 / Virus Database: 532 - Release Date: 10/29/2004 > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>