you might want to change that line to:next if $dir_cont =~s/^\.\.?$/;
because I really don't think you want substitution. basically delete the 's' alsonext if $dir_cont=~/^\.\.?$/;
should bemy($dir,$fullpath) = @_;
my($dir,$full_path) = @_;
In reply to Re: Recursion
by s0ttle
in thread Recursion
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |