- or download this
ip_address: 10.0.1.17
user: me
- or download this
package Server;
...
around BUILDARGS => sub {
# Load cfg file and set cfg attribute here
}
- or download this
my $server = Server->new('config_file_name');
$server->get('ip_address');
- or download this
sub BUILD {
my $self = shift;
...
$self->add_singleton_method( $prop => sub { $properties->{$prop};
+} );
}
}