Todd Chester has asked for the wisdom of the Perl Monks concerning the following question:
sub RmdirAndLoop ( $ ) { my $Target = $_[0]; # directory to remove # print "Target = <$Target>\n"; print "Pruning <$Target>. This may take a while...\n"; if ( $ftp->rmdir ( "$Target", 1 ) ) { print " $Target deleted successfully\n"; } else { for my $Target2 ( @ { $ftp->ls ( "$Target/*" ) } ) { RmdirAndLoop ( $Target2 ); # < ---- This is line 266 } } print "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What are the rules on calling myself?
by haukex (Archbishop) on Feb 04, 2017 at 09:03 UTC | |
by AnomalousMonk (Archbishop) on Feb 04, 2017 at 18:34 UTC | |
by Todd Chester (Scribe) on Feb 06, 2017 at 06:37 UTC | |
|
Re: What are the rules on calling myself? (too early to check prototype)
by Anonymous Monk on Feb 04, 2017 at 08:23 UTC | |
by Todd Chester (Scribe) on Feb 04, 2017 at 08:28 UTC | |
by Anonymous Monk on Feb 04, 2017 at 08:36 UTC | |
by Todd Chester (Scribe) on Feb 04, 2017 at 08:40 UTC | |
by Anonymous Monk on Feb 04, 2017 at 09:14 UTC |