Hm. Modifying an array whilst iterating over it? Maybe you should rather say
perl -le '@l = glob("*.mp3"); push @{$f[/ad/]}, $_ foreach @l;
(update) since @l[0,1] contain file names, not array references.
In reply to Re: push foreach glob - bug?
by shmem
in thread push foreach glob - bug?
by sfink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |