Help for this page

Select Code to Download


  1. or download this
    for my $user ( $users->all )
    {
    ...
            print join(", ", map { $_->name } $role->role->users);
        }
    }
    
  2. or download this
    my $full_rs = $schema->resultset("user");
    my @ids = $full_rs->get_column("id")->all;
    ...
                 ->search({},{columns => ["id"])
                 ->hashref_rs
                 ->all;
    
  3. or download this
    printf "\$%.2f\n", $user->orders->get_column("total")->sum;
    
  4. or download this
      $schema->resultset("Company")
             ->find($id)
             ->users
             ->active
             ->with_overdue_balance;