PerlSufi has asked for the wisdom of the Perl Monks concerning the following question:
Any insight is greatly appreciated :)#! /usr/bin/env perl use strict; use warnings; use Getopt::Long; use DBIx::Class::ResultSet; use Data::Dumper; use My::App::Schema; use Smart::Comments '###'; 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')->all; for my $result ( @results ) { ### Processing Domain ID: ($result->id) for ( 0..$max_records ) { print $result."\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Iterating through DBIx resultset
by stonecolddevin (Parson) on Jul 02, 2014 at 17:23 UTC | |
by PerlSufi (Friar) on Jul 02, 2014 at 17:31 UTC | |
by stonecolddevin (Parson) on Jul 02, 2014 at 17:36 UTC | |
by PerlSufi (Friar) on Jul 02, 2014 at 17:39 UTC | |
by stonecolddevin (Parson) on Jul 07, 2014 at 16:54 UTC | |
| |
|
Re: Iterating through DBIx resultset
by Your Mother (Archbishop) on Jul 02, 2014 at 19:05 UTC | |
by PerlSufi (Friar) on Jul 02, 2014 at 19:13 UTC |