Thanks to Timothy Kimball and Brett McCoy for answers to my problem, included below... -------- Original Message -------- Subject: Re: scalar vs. vector context Date: Mon, 7 May 2001 15:11:37 -0400 (EDT) From: [EMAIL PROTECTED] (Timothy Kimball) To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] : Do you mean the first instance of @possWords? so it would look like : this: : push(@possWords,$temp) ; Yep. : I didn't know that about push. Thanks for the info. I don't imagine that's a feature of push() that gets used much. -------- Original Message -------- Subject: Re: scalar vs. vector context Date: Mon, 7 May 2001 14:54:53 -0400 (EDT) From: [EMAIL PROTECTED] (Timothy Kimball) To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] : @possWords = push(@possWords,$temp) ; This line is the problem. push() returns the number of elements in the array after the new elements have been pushed onto it. Get rid of the "@possWords = " part of this line. -- tdk -------- Original Message -------- Subject: Re: scalar vs. vector context Date: Mon, 7 May 2001 15:05:46 -0400 (EDT) From: "Brett W. McCoy" <[EMAIL PROTECTED]> To: Lonya Julin <[EMAIL PROTECTED]> CC: <[EMAIL PROTECTED]> On Mon, 7 May 2001, Lonya Julin wrote: > @possWords = push(@possWords,$temp) ; Err... this is your problem. You are pushing your value onto @possWords, then returning the number of elements into the same array. I don't think this is what you want. push returns a $calar value with the new number of elements in your array. Unless you need to know how many elements are in your array, just say push(@possWords, $temp) -- Brett http://www.chapelperilous.net/btfwk/ ------------------------------------------------------------------------ Pyros of the world... IGNITE !!! -- Lonya Julin, Web Developer Terra Lycos 850 N. Shoreline Blvd Mountain View, CA 94043 corp.terralycos.com Tel (650) 428-5215