That's odd. It works for me too, but it doesn't work in my larger program (I have all the brackets, and in the right order). I have some extra stuff going around with the file handle, so maybe that's what's causing trouble.
I ended up going with BowserUK's solution, which is slightly shorter than the method I was using before.
In reply to Re^2: Forcing array context on a file handle
by ronmrdechai
in thread Forcing array context on a file handle
by ronmrdechai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |