Skip Menu |
 

This queue is for tickets about the Catalyst-Manual CPAN distribution.

Report information
The Basics
Id: 50953
Status: rejected
Priority: 0/
Queue: Catalyst-Manual

People
Owner: Nobody in particular
Requestors: somekool [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: missing information: action with various args numbers
Download (untitled) / with headers
text/plain 430b
in the section "Changing handler behaviour: eating arguments (:Args)" it is said I can specify how many Args my action will accept such as sub foo :Local :Args(3) {} not specifying :Args will allow any number of arguments what If I want to accept with 0, 1 or 2 but not anymore arguments than that? i dont know if it is possible but it should be explain there if it is or not possible and either How. or Why not. thanks
Download (untitled) / with headers
text/plain 291b
Catalyst does not directly support a range of options. The closest would be to have it be a variable number of args and then check length of the $c->req->args array ref manually in your controller if you only wanted a certain range of trailing args to see if it is in the appropriate range.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.