Bjoern has asked for the wisdom of the Perl Monks concerning the following question:
my %option = (); my %Songs =(); my @DirArray; my $DirIndex==0; my $CurrentDir; my $Artist; my $Index=1; getopts("d:", \%option); sub produce_array { if (-d $_) { $CurrentDir=$_; $DirArray[$DirIndex]=$_; $DirIndex++; }; if (-f $_) { push (@{$Songs{$CurrentDir}},$_); }; } find (\&produce_array, $option{d});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: file::find and ordered output
by broquaint (Abbot) on May 13, 2002 at 09:15 UTC | |
by Bjoern (Novice) on May 13, 2002 at 10:01 UTC | |
by broquaint (Abbot) on May 13, 2002 at 10:13 UTC | |
by Bjoern (Novice) on May 13, 2002 at 11:34 UTC | |
by Bjoern (Novice) on May 13, 2002 at 10:41 UTC |