perl_mystery has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use warnings; my (@recursive_plfs,plf_files) =(); @plf_files = {files.plf,orphans.plf,bases.plf}; @file = {//source/perl/scripts/modem/final/rel/sw/bases.plf#30,//sourc +e/perl/scripts/modem/final/rel/sw/files.plf#3}; foreach my $plf (@plf_files) { if (grep @file) { push @recursive_plfs=$plf; #the below loop needs to be repeated until no .plf's are found,how do +I do this? { open my $match, '<',"$plf" or die "could not open '$plf' $!"; push @recursive_plfs = /\/(\w+\.plf)/ = grep (/\*\.plf$/,$match) #get +only the plf name from the match } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Recursive search
by Anonymous Monk on Dec 17, 2010 at 00:31 UTC | |
by perl_mystery (Beadle) on Dec 17, 2010 at 01:38 UTC | |
by Anonymous Monk on Dec 17, 2010 at 01:59 UTC | |
by perl_mystery (Beadle) on Dec 17, 2010 at 03:11 UTC | |
by perl_mystery (Beadle) on Dec 17, 2010 at 08:47 UTC | |
by Corion (Patriarch) on Dec 17, 2010 at 09:30 UTC | |
by cdarke (Prior) on Dec 17, 2010 at 10:36 UTC | |
by perl_mystery (Beadle) on Dec 17, 2010 at 19:39 UTC | |
by roboticus (Chancellor) on Dec 17, 2010 at 20:39 UTC | |
|