X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FTxnScopeGuard.pm;h=843ad91f37cf47f67d7744d4e3c95f0622c78ef4;hp=9bda8bb7e4f639240cb8bafbb34f3a309ec1c12b;hb=e69b53350cbc835b0de96f0c1f9af4e31ac94fdd;hpb=6b01a153cf11b6f4b3a07434cf90719e63c5950c diff --git a/lib/DBIx/Class/Storage/TxnScopeGuard.pm b/lib/DBIx/Class/Storage/TxnScopeGuard.pm index 9bda8bb..843ad91 100644 --- a/lib/DBIx/Class/Storage/TxnScopeGuard.pm +++ b/lib/DBIx/Class/Storage/TxnScopeGuard.pm @@ -12,14 +12,11 @@ use namespace::clean; # we also need a real appendable, stackable exception object # (coming soon) BEGIN { - if ($] < 5.013001) { - *IS_BROKEN_PERL = sub () { 0 }; - } - elsif ($] < 5.013008) { + if ($] >= 5.013001 and $] <= 5.013007) { *IS_BROKEN_PERL = sub () { 1 }; } else { - die 'The $@ debacle should have been resolved by now, adjust DBIC'; + *IS_BROKEN_PERL = sub () { 0 }; } }