use base 'Class::Accessor::Fast'; HelloGtk->mk_accessors(qw(button));