From 039043dce270c730cd0880b30f18fd0665a8d5f9 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 3 Jan 2006 17:21:06 +0000 Subject: bless directly the wizard object instead of wrapping it in a hash --- news_wizard/Inn.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'news_wizard') diff --git a/news_wizard/Inn.pm b/news_wizard/Inn.pm index 6ad5ec83..364f1a7b 100755 --- a/news_wizard/Inn.pm +++ b/news_wizard/Inn.pm @@ -100,9 +100,7 @@ $o->{pages} = { sub new { my ($class) = @_; - bless { - o => $o, - }, $class; + bless $o, $class; } sub check_valid_hours { -- cgit v1.2.1