in reply to Re^3: Recursive search
in thread Recursive search
my $plf = shift; print "\nPLF in recursion:$plf\n"; open my $fh, '<', $plf or die "could not open '$plf' $!"; foreach (my $line = <$fh>) { print "LINE:$line"; #prints ,just the first line if($line =~ /\/(.+?\.plf)$/) { print "LINE CONDITION:$line"; #never comes here #print $1; $match_plf_name = $1; next if $match_plf_name eq $plf; push @recursive_plfs ,$match_plf_name; recursion($match_plf_name); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Recursive search
by roboticus (Chancellor) on Dec 17, 2010 at 20:39 UTC | |
by perl_mystery (Beadle) on Dec 17, 2010 at 20:46 UTC | |
by poj (Abbot) on Dec 17, 2010 at 21:04 UTC | |
by perl_mystery (Beadle) on Dec 17, 2010 at 21:59 UTC | |
by perl_mystery (Beadle) on Dec 17, 2010 at 22:17 UTC | |
|