Angel has asked for the wisdom of the Perl Monks concerning the following question:
package bar; use foo; sub new { my($type) = $_[0]; my($self) = {}; $self->{'new'} = 1; #error reporting and update vars $self->{error_type} = undef; $self->{error_string} = undef; bless($self, $type); return( $self ); } sub generate_form() { my $self = shift; my $foo = Foo->new; print $foo->do_something( "bunny" ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Objects in Objects
by bobn (Chaplain) on Aug 23, 2003 at 02:59 UTC | |
|
Re: Objects in Objects
by Anonymous Monk on Aug 23, 2003 at 10:59 UTC | |
by jeffa (Bishop) on Aug 23, 2003 at 13:59 UTC | |
by CombatSquirrel (Hermit) on Aug 23, 2003 at 16:12 UTC | |
by daeve (Deacon) on Aug 23, 2003 at 17:25 UTC | |
by CombatSquirrel (Hermit) on Aug 23, 2003 at 17:33 UTC |