Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
# Description : _init private method, should only be called by new t +o initialize a new object # Operation : $self->init(@array); # ###################################################### + sub _init { my $self = shift; if (@_) { my %initdata = @_; @$self{keys %initdata} = values %initdata; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Make sense?
by jettero (Monsignor) on Jul 19, 2007 at 15:57 UTC | |
by Anonymous Monk on Jul 19, 2007 at 16:13 UTC | |
|
Re: Make sense?
by jdporter (Paladin) on Jul 19, 2007 at 16:01 UTC | |
|
Re: Make sense?
by afresh1 (Hermit) on Jul 19, 2007 at 19:47 UTC | |
by ikegami (Patriarch) on Jul 19, 2007 at 20:13 UTC | |
by NetWallah (Canon) on Jul 20, 2007 at 05:04 UTC |