From 7c466fa4c2930045a7cffe5ad15fb4a3f972b5a8 Mon Sep 17 00:00:00 2001 From: pdbogen Date: Tue, 2 Dec 2008 22:14:54 +0000 Subject: [PATCH] Declare $short outside the if statement.. git-svn-id: https://www.cernu.us/~pdbogen/svn/destult2@81 088b83a4-0077-4247-935c-42ec02c2848b --- commands.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands.yaml b/commands.yaml index 1418e86..231cc03 100644 --- a/commands.yaml +++ b/commands.yaml @@ -1730,11 +1730,12 @@ TITLE: |- return; } + my $short; if( $what =~ /^https?:\/\/(snipurl|tinyurl)\.com\/.*/i ) { $short = $what; } else { use WWW::Shorten::SnipURL; - my $short = makeashorterlink( $what ); + $short = makeashorterlink( $what ); if( !$short ) { use WWW::Shorten::TinyURL; } -- 2.11.0