package T; use strict; use warnings; ########## BEGIN object persistent variables scope block ############ { my %Attr_Name_Env; ## Constructor 'new' # sub new { ## Get and confirm arguments # my $class = shift; my $href_arg = {@_}; my $name_env = $href_arg->{'name_env'}; ## Bless anon scalar into class # my $obj_new = bless anon_scalar(), $class; my $idx_self = ident $obj_new; # Populate object attributes # $Attr_Name_Env{ $idx_self } = $name_env; return $obj_new; } ## END Constructor 'new' sub DESTROY {... as you do ...} sub t_get_name_env { my $self = shift; my $idx_self = ident $self; return $Attr_Name_Env{ $idx_self }; } ## insert magic juju here } ########## END object persistent variables scope block ############ 1;