Skip Menu |

This queue is for tickets about the Web-Simple CPAN distribution.

Report information
The Basics
Id: 94488
Status: resolved
Priority: 0/
Queue: Web-Simple

People
Owner: Nobody in particular
Requestors: tsibley [...] cpan.org
Cc:
AdminCc:

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



Subject: Error from dispatcher while parsing prototype
The documentation says that something like the following should work, but I get the error shown: $ perl -MWeb::Simple -E 'sub dispatch_request { sub ((GET + /foo) | (POST + /foo)) { [200, ["Content-Type", "text/plain"], ["it works"]] } }; main->run_if_script' /foo 500 Internal Server Error Content-Type: text/plain Error parsing dispatch specification: No closing ) found for opening ( (GET+/foo)|(POST+/foo) ^ here perl version 5.18.2.
Specifically the documentation under https://metacpan.org/pod/Web::Simple#Combining-matches includes this example when explaining the precedence of the logical or operator: sub ((GET + /admin/...) | (POST + /admin/...)) {
Pushed failing tests on the branch people/trs/dispatcher-grouping-method-and-path.
On Mon Apr 07 16:56:21 2014, TSIBLEY wrote: Show quoted text
> Pushed failing tests on the branch people/trs/dispatcher-grouping- > method-and-path.
Nailed in 0.021. Thanks for the test.