Message-ID: <
20020417154532.A25446@puffinry.freeserve.co.uk>
p4raw-id: //depot/perl@15974
# it back.
$kid =~ s/^CORE::GLOBAL:://;
+ # If the sub name is not a valid identifier, then somebody
+ # (probably Abigail) must have written "foo"->(...). Reproduce
+ # this.
+ if ($kid !~ /^([a-zA-Z_]|::)([a-zA-Z_0-9]|::)*$/) {
+ $kid = single_delim("qq", '"', uninterp(escape_str(unback($kid))));
+ $kid .= "->";
+ }
+
if (!$declared) {
return "$kid(" . $args . ")";
} elsif (defined $proto and $proto eq "") {