Roy Johnson has asked for the wisdom of the Perl Monks concerning the following question:
#!perl use strict; use File::Find; my $archive_file = shift; my $source_dir = shift; print "Calling Find on <$source_dir>\n"; system("dir $source_dir"); find({ no_chdir => 1, wanted => sub { print STDERR "*** Doing $_ ***\n"; if (-f) { print "...Adding $_\n" } elsif (-d _) { print "Adding dir $_...\n" } }, $source_dir }) or die "$0: $!\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: File::Find blind
by Aragorn (Curate) on Jun 25, 2004 at 18:41 UTC | |
Re: File::Find blind
by runrig (Abbot) on Jun 25, 2004 at 18:38 UTC | |
Re: File::Find blind
by Limbic~Region (Chancellor) on Jun 25, 2004 at 18:31 UTC | |
Re: File::Find blind
by Roy Johnson (Monsignor) on Jun 25, 2004 at 18:38 UTC |