sub Populate{ ... $self->ConfigSpecs( -infile => [ qw/METHOD infile INFILE]); $self->{ _configX } = []; ... } #### process( $dlg->{ _configX } ); #### sub Populate{ ... $self->ConfigSpecs( -infile => [ qw/METHOD infile INFILE], -configx => [ qw/PASSIVE configx CONFIGX] ); ... } #### $config = []; $dlg->configure( -configx => $config ); process( $dlg->cget( "-configx" ) ); #### sub Populate{ ... $self->ConfigSpecs( -infile => [ qw/METHOD infile INFILE], -configx => [ qw/METHOD configx CONFIGX] ); $self->{ _configX } = []; ... } sub configx { # get configX on configure; # return configX on cget; } #### $config = []; $dlg->configure( -configx => $config ); process( $dlg->cget( "-configx" ) );