From f878019aa83592965a03611657e6bdda636b8a33 Mon Sep 17 00:00:00 2001 From: tokubass Date: Fri, 29 Mar 2013 02:41:24 +0900 Subject: [PATCH] support method other than 'run'. PocketIO->new(..., method => 'name_other_than_run' ) --- lib/PocketIO.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PocketIO.pm b/lib/PocketIO.pm index 2c50750..53b5e9a 100644 --- a/lib/PocketIO.pm +++ b/lib/PocketIO.pm @@ -95,7 +95,7 @@ sub _get_handler { $class->new; }; - return $instance->run; + return $instance->$method; } 1;