# parse... # note the parens for list context my ($coderef) = $ms->to_sub(); my $value = $coderef->();