in reply to Re^3: Iterating through DBIx resultset
in thread Iterating through DBIx::Class resultset
Also, is irc.perl.org on freenode?my $max_records = ''; GetOptions("max_records=i" => \$max_records) or die ("Error in command line arguments\n"); my @results = My::App::Schema->schema->resultset('MyTable')->search( undef, { page => 1, rows => $max_records, } ); for my $result ( @results ) { ### Processing Domain ID: ($result->id) print $result."\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Iterating through DBIx resultset
by stonecolddevin (Parson) on Jul 07, 2014 at 16:54 UTC | |
by PerlSufi (Friar) on Jul 07, 2014 at 18:09 UTC | |
by stonecolddevin (Parson) on Jul 08, 2014 at 17:17 UTC |