codechuck has asked for the wisdom of the Perl Monks concerning the following question:
sub GetSize { if (!defined($_[0])) { $_[0] = "GetSize function called, no value supplied!"; }; $TotalSize=0; find sub { if (-f) { if (/mp3/){&LogMessage("$_\n");} } $TotalSize += -s; }, $_[0]; ($TotalSize,$dis) = split(/\./,$TotalSize); &LogMessage("$TotalSize\n"); } ########
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: file::find reset?
by isotope (Deacon) on May 07, 2001 at 19:52 UTC | |
by codechuck (Initiate) on May 07, 2001 at 23:48 UTC | |
by tye (Sage) on May 07, 2001 at 23:53 UTC |