Help for this page

Select Code to Download


  1. or download this
    my $persons = $schema->resultset('Person');
    my $active_persons = $person->search({ active => 1 });
    
  2. or download this
    while (my $person = $person->next) {
        ...;
    }
    
  3. or download this
    my @person_objs = $person->all;
    
  4. or download this
    $active_persons->search({
        writeup_comment.title => 'Foo',
    ...
        prefetch => 'writeup',
    });
    # gets you all persons with have recieved a comment with the title 'Fo
    +o' for one of their writeups, for example
    
  5. or download this
    my $writeups = $active_persons->search_related('Writeup');