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]

Reply via email to