my $private_method = sub { # ... do stuff only class things should know }; $private_method->();