Message-Id: <E1541JK-0000YC-00@dl.sch.bme.hu>
p4raw-id: //depot/perl@10243
my $closure_import_func = $func; # Full name
my $closure_func = $func; # Name inside package
- my $index = index($func, '::');
+ my $index = rindex($func, '::');
if ($index == -1) {
$closure_import_func = "${callpkg}::$func";
} else {