On Mon, 29 Jan 2001, you wrote:
> In message <[EMAIL PROTECTED]>,
> Robin Szemeti <[EMAIL PROTECTED]> writes:
> > this works fine if the function returns a list with more than one thing
> > in it .. if there is only one thing in the array I get a 'dont know how
> > to access [ 3 ].0  if for example item 3 is returned.
> > 
> > if I access the result as just plain [% item %] it works fine if there is
> > one item in the list .. and returns lots of ARRAY0x1241234 if there is
> > more than one ...
> 
> Sounds like your dereferencing function may be returning a SCALAR instead
> of an ARRAY when there's only one result?

could be ... I had :

my($data)=$sth->fetchall_arrayref;
return @{$data};

which I thought should return a flat list of references to arrays ... ??
nope?

-- 
Robin Szemeti

The box said "requires windows 95 or better"
So I installed Linux!

Reply via email to