My problem was that I wasn't splitting my posted form data on the \n into my @Draw.
And Tagore, yes, I was (at least at one time) calling it in scalar context. Thank you Tagore and Fliptop (and everyone else who helped). I hope this helps some other newbie sometime! I appreciate you putting up with me for so many posts 8^) However, I'm sure that this will not be my last post >8^) heh heh heh... Bless both of you. -James ----Original Message Follows---- From: "Tagore Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: mysterious leading spaces Date: Wed, 13 Mar 2002 14:13:38 -0500 James Woods wrote: > So I guess my newest question is, what am I doing wrong to only print out > the first record of @Draw? It's hard to know for sure without seeing the code where you initialize @Draw. I went back and looked at earlier posts, and your initial problem (the leading spaces) was because you were printing the array in double-quoted context. In terms of getting only the first element, you're using a succession of hidden inputs with the same name, right? Are you calling $cgi->param in list context? If you call it in scalar context you'll only get one value back. So you would do it like this: @Draw=$cgiobject->param('hiddendata'); but not: $Draw=$cgiobject->param('hiddendata'); or $Draw[0]=$cgiobject->param('hiddendata'); or @Draw[0]=$cgiobject->param('hiddendata'); Anyway, without seing the code where @Draw is initialized it's hard to know, but if you are doing one of the above, that's the problem. Hope that helps. Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]