Actually, the filehandle example you give works not because "a filehandle can act as an array" but because readline returns a list of all lines that can still be read from the filehandle in list context. That is, an operator that works on filehandles has a nice shortcut to get a list of things in one fell swoop.
Subtle difference, but this is Perl. :)
In reply to Re: Re: array pushing
by chromatic
in thread array pushing
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |