Thanks for the replies guys, it *was* the line endings of the target text file in the end. I'll definitely try my @array = <FILE>; in the future- seems a lot neater.
Cheers, -Shannon Murdoch On 11/8/02 1:54 AM, in article [EMAIL PROTECTED], "David Wheeler" <[EMAIL PROTECTED]> wrote: > On Saturday, August 10, 2002, at 12:43 AM, Shannon Murdoch wrote: > >> while(<FILE>){ >> push (@array,$_); >> } > > This doesn't answer your question, but just as a space saver (perhaps even > optimization, I'm not sure), you might want to try this syntax: > > my @array = <FILE>; > > David > > -- > David Wheeler AIM: dwTheory > [EMAIL PROTECTED] ICQ: 15726394 > http://david.wheeler.net/ Yahoo!: dew7e > Jabber: [EMAIL PROTECTED] >