Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
1) How would I recurse through the directory tree? How do I specify I only want '.mp3' files, or '.pl' files?
2) Is it safe to alter a scalar array in the middle of a 'foreach' loop? For example:
foreach $word (@WORDS) {
push(@WORDS, "hello") if $word eq "salutations";<>
}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: recurse directories?
by Dominus (Parson) on Mar 12, 2000 at 03:30 UTC | |
|
Re: recurse directories?
by Dominus (Parson) on Mar 12, 2000 at 03:25 UTC | |
|
RE: recurse directories?
by Anonymous Monk on Mar 13, 2000 at 00:38 UTC | |
|
Re: recurse directories?
by Anonymous Monk on Mar 12, 2000 at 06:25 UTC | |
|
Re: recurse directories?
by Benedictine Monk (Novice) on Mar 12, 2000 at 10:33 UTC | |
|
RE: recurse directories?
by Anonymous Monk on Mar 13, 2000 at 00:37 UTC |