[Dbix-class] Auto-generate random primary keys

Bernhard Graf dbic at augensalat.de
Wed Mar 1 15:14:29 CET 2006


Matt S Trout wrote:
> It's broken.
>
> } while ($self->search({$column => $val}));
>
> should be
>
> } while ($self->result_source->resultset->search({$column => $val}));

Very sophisticated. ;-)

Unfortunately this results in an infinite loop.

$self->result_source->resultset->search({$column => $val})->next works.
-- 
Bernhard Graf



More information about the Dbix-class mailing list