From: Ken Youens-Clark Date: Thu, 9 Oct 2003 16:35:55 +0000 (+0000) Subject: Small change to prevent "use of uninitialized value" warnings. X-Git-Tag: v0.04~96 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c96037738918b18fc64a2e683f6bb177edc35e3c;p=dbsrgits%2FSQL-Translator.git Small change to prevent "use of uninitialized value" warnings. --- diff --git a/lib/SQL/Translator/Utils.pm b/lib/SQL/Translator/Utils.pm index 57b455c..54f99fe 100644 --- a/lib/SQL/Translator/Utils.pm +++ b/lib/SQL/Translator/Utils.pm @@ -1,7 +1,7 @@ package SQL::Translator::Utils; # ---------------------------------------------------------------------- -# $Id: Utils.pm,v 1.9 2003-09-26 21:04:32 kycl4rk Exp $ +# $Id: Utils.pm,v 1.10 2003-10-09 16:35:55 kycl4rk Exp $ # ---------------------------------------------------------------------- # Copyright (C) 2003 darren chamberlain # @@ -26,7 +26,7 @@ use vars qw($VERSION $DEFAULT_COMMENT @EXPORT_OK); use Exporter; -$VERSION = sprintf "%d.%02d", q$Revision: 1.9 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.10 $ =~ /(\d+)\.(\d+)/; $DEFAULT_COMMENT = '-- '; @EXPORT_OK = qw( debug normalize_name header_comment parse_list_arg $DEFAULT_COMMENT @@ -72,7 +72,7 @@ sub debug { # ---------------------------------------------------------------------- sub normalize_name { - my $name = shift; + my $name = shift || ''; # The name can only begin with a-zA-Z_; if there's anything # else, prefix with _