[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] OT - HTML::Pager - ref to array of hashes


> I'm having a problem with HTML::Pager when I return a ref to an array of
> hashes from the 'get data' sub.
>
> It seems to work fine *except* when the number of rows returned for a
> page is less than the page_size option. (usually the final page or the
> initial page for a very small data set)
>
>     my @return_array;

Perhaps try initializing your array:

     my @return_array = ();

That way, the reference may work out even if nothing gets pushed onto
it. I think it may be the difference between an "undefined" value and a
array with zero elements in it.

  Mark

http://mark.stosberg.com/

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.