summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2012-06-03 22:50:57 +0200
committerNicholas Clark <nick@ccl4.org>2012-06-03 22:50:57 +0200
commitbbd7bacc48bc053e51f3c115412abb4137bea796 (patch)
tree91f234eedba591e898d59bbbad43f47bbffb76b8 /lib
parentff3f295cdd229f2736e9ad06835c5c121ea45fad (diff)
downloadperl-bbd7bacc48bc053e51f3c115412abb4137bea796.tar.gz
Remove commented-out debugging print statements from File:DosGlob
None of these have been changed in over a decade, aside from re-indentation. Leave in 3 commented-out print statements which are necessary to understand a FIXME comment.
Diffstat (limited to 'lib')
-rw-r--r--lib/File/DosGlob.pm6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/File/DosGlob.pm b/lib/File/DosGlob.pm
index 111ec20dbe..8208f6790b 100644
--- a/lib/File/DosGlob.pm
+++ b/lib/File/DosGlob.pm
@@ -14,7 +14,6 @@ sub doglob {
my $cond = shift;
my @retval = ();
my $fix_drive_relative_paths;
- #print "doglob: ", join('|', @_), "\n";
OUTER:
for my $pat (@_) {
my @matched = ();
@@ -38,7 +37,6 @@ sub doglob {
}
if ($pat =~ m|^(.*)([\\/])([^\\/]*)\z|s) {
($head, $sepchr, $tail) = ($1,$2,$3);
- #print "div: |$head|$sepchr|$tail|\n";
push (@retval, $pat), next OUTER if $tail eq '';
if ($head =~ /[*?]/) {
@globdirs = doglob('d', $head);
@@ -70,7 +68,6 @@ sub doglob {
$pat =~ s/\*/.*/g;
$pat =~ s/\?/.?/g;
- #print "regex: '$pat', head: '$head'\n";
my $matchsub = sub { $_[0] =~ m|^$pat\z|is };
INNER:
for my $e (@leaves) {
@@ -139,7 +136,6 @@ sub glob {
#print "Got: \n\t$start\n\t$match\n\t$end\n";
my $tmp = "$start$match$end";
while ( $tmp =~ s/^(.*?)(?<!\\)\{(?:.*(?<!\\)\,)?(.*\Q$match\E.*?)(?:(?<!\\)\,.*)?(?<!\\)\}(.*)$/$1$2$3/ ) {
- #print "Striped: $tmp\n";
# these expansions will be performed by the original,
# when we call REHASH.
}
@@ -157,7 +153,6 @@ sub glob {
}
if ( $#appendpat != -1
) {
- #print "LOOP\n";
#FIXME: Max loop, no way! :")
for ( @appendpat ) {
push @pat, $_;
@@ -168,7 +163,6 @@ sub glob {
for ( @pat ) {
s/\\([{},])/$1/g;
}
- #print join ("\n", @pat). "\n";
$entries{$cxix} = [doglob(1,@pat)];
}