From d20295741c196e87bcfb084ab1b3466fd027eaef Mon Sep 17 00:00:00 2001 From: swag Date: Sat, 4 Dec 2021 13:28:07 -0500 Subject: [PATCH] Added cpanfile --- cpanfile | 4 ++++ guestbook-ng.pl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 cpanfile diff --git a/cpanfile b/cpanfile new file mode 100644 index 0000000..92ef292 --- /dev/null +++ b/cpanfile @@ -0,0 +1,4 @@ +requires 'Test::More'; +requires 'Mojo::File'; +requires 'Test::Mojo'; +requires 'Mojolicious::Lite'; diff --git a/guestbook-ng.pl b/guestbook-ng.pl index 427331f..f774e70 100755 --- a/guestbook-ng.pl +++ b/guestbook-ng.pl @@ -14,7 +14,7 @@ get '/' => sub ($c) { } => 'index'; any '/test' => sub ($c) { - my $method = $c->req->method; + my $method = $c->req->method(); my $string = $tm->test_model($c->param('string')); $c->render(method => $method, string => $string);