
MattC
Novice
Nov 7, 2012, 10:40 AM
Post #1 of 4
(3626 views)
|
Not sure where im wrong
|
Can't Post
|
|
I am writing a simple subroutine to grab the latest registered users. Doesn't seem to run, and I can not - for the life of me - figure it out.
sub get_recent_users { my ($self, $limit) = @_; $limit = $limit || 30; my $users = $self->search( { }, { result_class => 'DBIx::Class::ResultClass::HashRefInflator', order_by => { -asc => 'me.ts' }, rows => $limit, select => [( 'user.uid', 'user.complete_name', )], } ); return $users; } Cheers.
|