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";<>
}
In reply to recurse directories? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |