It expect to see errors and warnings, but in fact this code has the correct syntax for Perl, so no errors or warnings will be shown.
In this code, the Middleware will be applied in the following order: ReverseProxy -> Static -> Session::Cookie (not ReverseProxy -> Session::Cookie -> Static)
The following is the result of B::Deparse on this code:
To warning such a mistake, how about displaying warnings like this patch when enable/enable_if is called on void context?
I think enable/enable_if should be called in a void context in general.
Example: the following code looks like the correct code, but in fact, it mistakenly uses a comma as a semicolon.
It expect to see errors and warnings, but in fact this code has the correct syntax for Perl, so no errors or warnings will be shown. In this code, the Middleware will be applied in the following order:
ReverseProxy -> Static -> Session::Cookie
(notReverseProxy -> Session::Cookie -> Static
)The following is the result of B::Deparse on this code:
To warning such a mistake, how about displaying warnings like this patch when enable/enable_if is called on void context? I think enable/enable_if should be called in a void context in general.
related blog entry (Japanese): https://memo.sugyan.com/entry/2021/08/23/003752