in reply to Re^5: Recursive search
in thread Recursive search
I did try chomp as below,didnt make a difference?
sub recursion { my $plf = shift; print "\nPLF in recursion:$plf\n"; open my $fh, '<', $plf or die "could not open '$plf' $!"; chomp $fh; foreach (my $line = <$fh>) { chomp $line; print "LINE:$line"; if($line =~ /\/(.+?\.plf)/) { print "LINE CONDITION:$line"; #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^7: Recursive search
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 | |
by poj (Abbot) on Dec 17, 2010 at 22:42 UTC | |
by perl_mystery (Beadle) on Dec 17, 2010 at 22:51 UTC | |
|