[Catalyst-dev] pod clarification - Catalyst/Request::uploads()

Carl Franks fireartist at gmail.com
Fri Nov 17 16:25:04 GMT 2006


The pod for Catalyst/Request::uploads() states:
Returns a reference to a hash containing uploads. Values can be either a
hashref or a arrayref containing L<Catalyst::Request::Upload> objects.

Looking at the code of Catalyst/Engine::prepare_uploads(), the pod is
wrong - it will either be a single L<Catalyst::Request::Upload>
object, or an arrayref of L<Catalyst::Request::Upload> objects - but
it will never be a hashref of objects.

Attached is a patch that corrects the pod.

Cheers,
Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pod.patch
Type: text/x-patch
Size: 576 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst-dev/attachments/20061117/=
106b9b66/pod.bin


More information about the Catalyst-dev mailing list