X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FCarp.pm;h=d27df5ddee1a27e5d4c39617e930b3ac32826022;hb=75a1d824dae50a309db204be15ef46aa52b1deb5;hp=6970c103e9be055fbd575a55b44d1ac6f5d4f3dd;hpb=0d8817bcb744bb46adf787f359f34e49b092d42e;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Carp.pm b/lib/DBIx/Class/Carp.pm index 6970c10..d27df5d 100644 --- a/lib/DBIx/Class/Carp.pm +++ b/lib/DBIx/Class/Carp.pm @@ -1,4 +1,5 @@ -package DBIx::Class::Carp; +package # hide from pause + DBIx::Class::Carp; use strict; use warnings; @@ -29,8 +30,6 @@ sub __find_caller { my $fr_num = 1; # skip us and the calling carp* my @f; while (@f = caller($fr_num++)) { - last unless $f[0] =~ $skip_pattern; - if ( $f[0]->can('_skip_namespace_frames') and @@ -38,6 +37,8 @@ sub __find_caller { ) { $skip_pattern = qr/$skip_pattern|$extra_skip/; } + + last if $f[0] !~ $skip_pattern; } my ($ln, $calling) = @f # if empty - nothing matched - full stack @@ -68,8 +69,8 @@ sub import { my $into = caller; $skip_pattern = $skip_pattern - ? qr/ ^ $into $ | $skip_pattern /xo - : qr/ ^ $into $ /xo + ? qr/ ^ $into $ | $skip_pattern /x + : qr/ ^ $into $ /x ; no strict 'refs';