It's actually an object (with string overload), so this avoids an
"Attempt to use reference as lvalue in substr" warning on perl 5.16.
return $orig->(@_)
unless $last->isa('PPI::Token::Symbol');
- my $sigil = substr($last, 0, 1, '');
- my $re = qr/^\Q$last/;
+ my ($sigil, $name) = split(//, $last, 2);
+ my $re = qr/^\Q$name/;
return $orig->(@_),
# ReadLine is weirdly inconsistent