In article <199707031649.MAA31725@netspace.org>, Daniel Macks <dmacks@netspace.org> writes >Andy Armstrong said: >: >: while (<>) { push(@user, split(/\t/, $_)[1]); } > >...which gives > Can't use subscript on split > >You gotta first make an array before you can take an element of it (and >may as well make it a bit more efficient as well): > while (<>) { push(@user, ( split(/\t/, $_, 3) )[1] ); } Oops. That was a transcription error actually; I tested the original :-) -- http://www.wonderworks.co.uk --> Free RISC OS software Andy Armstrong, WonderWorks ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch