- or download this
package DBManager;
...
$self->{db} = undef;
}
- or download this
sub setDbh {
my ($self) = @_;
...
return $colMatch;
}
- or download this
1;
...
}
1;
- or download this
my $task = Task->new;
my $now = Date::Manip::ParseDate ('today');
my $tasks = $task->fetch_all (starts => ["<= '$now'"]);
my @readyTasks =
sort {$a->{starts} cmp $b->{starts}} values %$tasks;