From: dms Date: Tue, 15 Aug 2000 11:27:25 +0000 (+0000) Subject: warning (typo) fixed X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f2d72df4973205a34bc2bf18ae808759ccbb4986;p=infobot.git warning (typo) fixed git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@45 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Misc.pl b/src/Misc.pl index 03a1732..cbb31e7 100644 --- a/src/Misc.pl +++ b/src/Misc.pl @@ -76,7 +76,7 @@ sub getPath { my ($pathnfile) = @_; ### TODO: gotta hate an if statement. - if (/(.*)\/(.*?)$/) { + if ($pathnfile =~ /(.*)\/(.*?)$/) { return $1; } else { return ".";