Subject: | Typos in documentation example code |
From the Web::Simple POD:
For example to match a "page" parameter with an optional "order_by"
parameter one would write:
sub (?page=&order_by~) {
my ($self, $page, $order_by) = @_;
return unless $page =~ /^\d+$/;
$page ||= 'id';
response_filter {
$_[1]->search_rs({}, $p);
}
}
$page ||= 'id' should be $order_by. $p in the search_rs call should be { page => $page, order_by => $order_by }.