sub table { my ($self,$table) = @_; $self->{table} = $table; return $self; }
Since this method returns $self, both $tbl1 and $tbl2 are actually the same object.
A good solution would be to distinguish between database and table objects. Or use DBIx::Class right away.
In reply to Re: OO Coding - way to make it "save" the values?
by moritz
in thread OO Coding - way to make it "save" the values?
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |