in reply to has_many in Class:DBI
I don't think your problem is with Class::DBI, it is with perl. You have two nested foreach loops, and both use $_. Try the following and see what happens:
foreach my $buechereien (@kk) { last if $i++ > 10; printf "%02d. %s\n", $i, $buechereien->customer->plzort; # This is where the problem occurs: foreach my $kontakte ( $buechereien->kontakte ) { printf " %s\n", $kontakte->aktion_kurz; } }
- Cees
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: has_many in Class:DBI
by horshack (Acolyte) on Feb 16, 2004 at 07:28 UTC |