Aniki
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Aniki/Row/Joined.pm view on Meta::CPAN
use 5.014002;
use strict;
use warnings;
use Carp qw/croak/;
sub new {
my ($class, @rows) = @_;
my %rows = map { $_->table_name => $_ } @rows;
return bless \%rows => $class;
}
sub can {
my ($invocant, $method) = @_;
my $code = $invocant->SUPER::can($method);
return $code if defined $code;
if (ref $invocant) {
my $self = $invocant;
my $table_name = $method;
t/lib/t/DB/Exception.pm view on Meta::CPAN
package t::DB::Exception;
use strict;
use warnings;
use Scalar::Util qw/blessed/;
sub new {
my $class = shift;
return bless {@_} => $class;
}
sub message { shift->{message} }
sub throw { die shift->new(@_) }
sub caught {
my ($class, $e) = @_;
return blessed $e && $e->isa($class);
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.147 second using v1.00-cache-2.02-grep-82fe00e-cpan-4185a24d4ac )