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

use Symbol::Approx::Sub (xform => undef,
			 match => sub { shift; 
					for (0 .. $#_) {
					  return $_ if $_[$_] eq 'aa'
					}
					return });

sub aa { 'aa' }

sub bb { 'bb' }

ok(&b eq 'aa');