From: Perl 5 Porters Date: Sun, 17 Mar 1996 11:26:25 +0000 (+0000) Subject: Accept old (') and new (::) package delimiters X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=49da0595a758084ead0616930380fee60b25aece;p=p5sagit%2Fp5-mst-13.2.git Accept old (') and new (::) package delimiters --- diff --git a/lib/Symbol.pm b/lib/Symbol.pm index a12e6dc..c266d64 100644 --- a/lib/Symbol.pm +++ b/lib/Symbol.pm @@ -73,7 +73,7 @@ sub ungensym ($) {} sub qualify ($;$) { my ($name) = @_; - if (! ref($name) && $name !~ /::/) { + if (!ref($name) && index($name, '::') == -1 && index($name, "'") == -1) { my $pkg; # Global names: special character, "^x", or other. if ($name =~ /^([^a-z])|(\^[a-z])$/i || $global{$name}) {