in reply to Re: SOAP Modules (OO or not?)
in thread SOAP Modules (OO or not?)
Is that okay on it's own, or should I create a new() sub to do the bless'ing? I'm sure it's more a question of "best practice" than anything else.package SOAPServer; use strict; use warnings; sub myfunction { my $class = shift; my $self = {}; bless ($self, $class); my $one = shift; my $two = shift; $self->{one} = $one; $self->{two} = $two; return $self; } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: SOAP Modules (OO or not?)
by jhourcle (Prior) on Jun 30, 2007 at 19:51 UTC | |
by Cagao (Monk) on Jul 01, 2007 at 13:39 UTC | |
|
Re^3: SOAP Modules (OO or not?)
by ForgotPasswordAgain (Vicar) on Jun 30, 2007 at 17:00 UTC | |
by Cagao (Monk) on Jun 30, 2007 at 18:26 UTC |