Revision history for DBIx::Class
+ - ensure_class_loaded handles non-classnames better.
- non-destructive hashref handling for connect_info options
- count no longer returns negative values after slice
(report and test from JOHANL)
# require
sub ensure_class_loaded {
my ($class, $f_class) = @_;
+
+ croak "Invalid class name $f_class"
+ if ($f_class=~m/(?:\b:\b|\:{3,})/);
return if Class::Inspector->loaded($f_class);
eval "require $f_class"; # require needs a bareword or filename
if ($@) {