X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-Schema-Loader.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FUtils.pm;h=fca3c2f828a223d532b272c55a3f5fa6cf0d872f;hp=c2e5d433a10a511b4a2d19716a570b217751d2cd;hb=83bce685261042f92421f313dd724a910c8d8f0e;hpb=51719c5f11b1e7bc844056f4be13c3fcb3c75a64 diff --git a/lib/DBIx/Class/Schema/Loader/Utils.pm b/lib/DBIx/Class/Schema/Loader/Utils.pm index c2e5d43..fca3c2f 100644 --- a/lib/DBIx/Class/Schema/Loader/Utils.pm +++ b/lib/DBIx/Class/Schema/Loader/Utils.pm @@ -52,13 +52,13 @@ sub dumper_squashed($) { # copied from DBIx::Class::_Util, import from there once it's released sub sigwarn_silencer { - my $pattern = shift; + my $pattern = shift; - croak "Expecting a regexp" if ref $pattern ne 'Regexp'; + croak "Expecting a regexp" if ref $pattern ne 'Regexp'; - my $orig_sig_warn = $SIG{__WARN__} || sub { CORE::warn(@_) }; + my $orig_sig_warn = $SIG{__WARN__} || sub { CORE::warn(@_) }; - return sub { &$orig_sig_warn unless $_[0] =~ $pattern }; + return sub { &$orig_sig_warn unless $_[0] =~ $pattern }; } sub eval_package_without_redefine_warnings {