Loopy has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use File::Recurse; my $size = "0"; recurse(\&sizedir, "k:/node1"); print "$size\n"; exit; sub sizedir { shift; $size += -s "$_"; }
47:>if (-d _) { 48:> next if (-l $path && !$File::Recurse::FOLLOW_SYMLINKS); 49:> $ret = recurse($exe,$path,$context,$level+1); 50:> last if ($ret == -2); 49:>}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Errors in File::Recurse()?
by Fastolfe (Vicar) on Nov 10, 2000 at 02:08 UTC | |
|
RE: Errors in File::Recurse()?
by lemming (Priest) on Nov 10, 2000 at 02:57 UTC | |
|
CPU Usage for Find vs Recurse
by Loopy (Initiate) on Nov 10, 2000 at 04:15 UTC | |
by lemming (Priest) on Nov 10, 2000 at 04:35 UTC | |
|
Re: Errors in File::Recurse()?
by lolindrath (Scribe) on Nov 10, 2000 at 02:13 UTC | |
by myocom (Deacon) on Nov 10, 2000 at 02:16 UTC | |
by Fastolfe (Vicar) on Nov 10, 2000 at 02:20 UTC | |
by Loopy (Initiate) on Nov 10, 2000 at 02:41 UTC | |
by tye (Sage) on Nov 10, 2000 at 05:01 UTC |