From: pdbogen Date: Tue, 2 Dec 2008 22:14:54 +0000 (+0000) Subject: Declare $short outside the if statement.. X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=7c466fa4c2930045a7cffe5ad15fb4a3f972b5a8;p=destult.git Declare $short outside the if statement.. git-svn-id: https://www.cernu.us/~pdbogen/svn/destult2@81 088b83a4-0077-4247-935c-42ec02c2848b --- 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; }