sub some_method { my $self = shift; # Do stuff with $self. # At this point, $self will be a Widget::CheckBox }