...I will confess that i could not get this code to work with POST requests, only GET requests....get '/' => sub { ... get '/select_color' => sub { ... get '/select_animal' => sub { ...
get is get, post is post, any is any of http methods get/put/post/delete
just get/post is any ['get', 'post'] => sub { ...
In reply to Re^2: Accessing Variables in Different Subroutines
by Anonymous Monk
in thread Accessing Variables in Different Subroutines
by stefl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |