summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2010-05-28 13:57:20 -0400
committerJason Woodward2010-05-28 13:57:20 -0400
commite933bd5b89fdf4ea4e67eee9c28ab5798ceae353 (patch)
treedd498517404fa5a077892866b600e78072ea86d6
parent1fe3f11b3646c2dcc464e6c72f7213e2f340c154 (diff)
downloadJaos-WebApp-e933bd5b89fdf4ea4e67eee9c28ab5798ceae353.tar.gz
strict and warning
-rw-r--r--lib/Jaos/WebApp.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Jaos/WebApp.pm b/lib/Jaos/WebApp.pm
index 71be6ef..928b6f1 100644
--- a/lib/Jaos/WebApp.pm
+++ b/lib/Jaos/WebApp.pm
@@ -1,4 +1,6 @@
package Jaos::WebApp;
+use strict;
+use warnings;
our $VERSION = 0.1;
use Jaos::WebApp::Dispatcher;
use Jaos::WebApp::Route;
@@ -100,7 +102,7 @@ sub run
$self->log->debug("running post dispatch hooks");
$_->($self) for @{$self->{run_hooks}->{post_dispatch}};
- delete $app->{ qw/stash res req/};
+ delete $self->{ qw/stash res req/};
return $res->finalize;
}
@@ -155,7 +157,7 @@ sub load_plugin
my ($self, $plugin_class, $opts) = @_;
$self->log->debug("loading plugin $plugin_class");
eval {
- if (!$plugin_class->can(register)) {
+ if (!$plugin_class->can('register')) {
eval "require $plugin_class";
}
$plugin_class->register($self, $opts);