The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;
use Test::More tests => 2;

use MooseX::Method::Signatures;

my $foo = 'bar';

method "$foo" ($class:) { $foo }

my $meth = __PACKAGE__->can($foo);
ok($meth);
is(__PACKAGE__->$meth, $foo);