in reply to Re: array pushing
in thread array pushing
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. :)
|
|---|