From 38081597b2887cfdf67cc73f6a10e70189e8d045 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Sat, 19 Feb 2011 12:37:13 +0000 Subject: fixed deprecated warning on defined (%hash) --- vim-mode/vim_mode.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim-mode') diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 7d898ab..d850d63 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -618,7 +618,7 @@ sub script_is_loaded { my $name = shift; print "Checking if $name is loaded" if DEBUG; no strict 'refs'; - my $retval = defined %{ "Irssi::Script::${name}::" }; + my $retval = %{ "Irssi::Script::${name}::" }; use strict 'refs'; return $retval; -- cgit v1.2.3