mala has asked for the wisdom of the Perl Monks concerning the following question:
package Kprocess; sub new { my ($class, $fname) = @_; my $self = { lib => undef }; bless $self, $class; my $lib = Kprocess::Container->new(); my $libfile = Kprocess::File->new($fname); $lib->read($libfile); ($self->{lib}) = ($lib->get_list("library")); return $self; } sub get_value { my ($self, $keyword, $default) = @_; return $self->{lib}->get_value($keyword, $default); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl OO Help: Urgent :)
by jettero (Monsignor) on Jul 31, 2009 at 01:52 UTC | |
by Anonymous Monk on Jul 31, 2009 at 04:06 UTC | |
by chromatic (Archbishop) on Jul 31, 2009 at 05:35 UTC | |
by Anonymous Monk on Jul 31, 2009 at 13:43 UTC | |
by chromatic (Archbishop) on Jul 31, 2009 at 17:39 UTC | |
by SuicideJunkie (Vicar) on Jul 31, 2009 at 13:55 UTC | |
by mala (Initiate) on Jul 31, 2009 at 13:49 UTC |