in reply to Can't call method "find" on an undefined value

Your result class is called "package AddressBook::Schema::AddressDB::Result::Address;", but you're calling "Addresses". Try changing that in your model call.

Three thousand years of beautiful tradition, from Moses to Sandy Koufax, you're god damn right I'm living in the fucking past

  • Comment on Re: Can't call method "find" on an undefined value

Replies are listed 'Best First'.
Re^2: Can't call method "find" on an undefined value
by Anonymous Monk on Feb 20, 2012 at 06:31 UTC
    it should be $address = $c->model('AddressDB::Address')->find({id => $address_id});

      If it's the primary key you don't have to specify the column name

      Three thousand years of beautiful tradition, from Moses to Sandy Koufax, you're god damn right I'm living in the fucking past