The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
package Three;

package Three::Bar;
sub new {
    my ($class, $args) = @_;
    $args ||= {};
    bless { %{ $args } }, $class;
}
sub three { shift->{three} }

package ThreeBar;
sub new { bless +{}, shift };
sub three {1}

1;