[Dbix-class] trouble using search

Bernhard Weisshuhn bkw at weisshuhn.de
Thu Nov 8 12:47:34 GMT 2007


On Thu, Nov 08, 2007 at 06:14:03PM +0530, jagdish eashwar <jagdish.eashwar at gmail.com> wrote:

> my $name = $names->first;
> print "$name->name\n";
> 	
> This printed 'Testdb::Main::Family=HASH(0x84275e8)->name' instead of
> the expected 'sushama'.
> 
> I am unable to spot where my mistake is? Can anyone help please?

Remove the quotes:

print $names->first->name,"\n";
or
print $name->name,"\n";


regaards,
  bkw



More information about the DBIx-Class mailing list