What's this supposed to do?

perigrin on 2004-06-28T17:23:50

So I'm working in a coprorate enviroment now, and I encounter some gems from the past like the following:

foreach $file (<@myFiles>) { ... process ... }

I know what it does in Perl4 (10 points to the house of whomever guesses correctly) but what's it supposed to do in Perl5?

Under 5.005 it's a silent bug.


It's supposed to

rafael on 2004-06-28T18:33:40

glob each element of @myfiles, just like glob("@myfiles").

Re:It's supposed to

perigrin on 2004-06-29T15:10:05

well, ten points to France then ... now I know!