From: Dagfinn Ilmari Mannsåker Date: Tue, 29 Oct 2013 17:24:34 +0000 (+0000) Subject: Consistently use "eq ''" when checking for exception refness X-Git-Tag: v0.08260~101 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=commitdiff_plain;h=bcb37ecc8b9da94d515656cdcd2ab0d0a663fce4 Consistently use "eq ''" when checking for exception refness --- diff --git a/lib/DBIx/Class/Storage/TxnScopeGuard.pm b/lib/DBIx/Class/Storage/TxnScopeGuard.pm index 844b2cc..09a3fc5 100644 --- a/lib/DBIx/Class/Storage/TxnScopeGuard.pm +++ b/lib/DBIx/Class/Storage/TxnScopeGuard.pm @@ -25,7 +25,7 @@ sub new { # There got to be a saner way of doing this... if (defined $@ and "$@" ne '') { weaken( - $guard->{existing_exception_ref} = (ref $@ ne '') ? $@ : \$@ + $guard->{existing_exception_ref} = (ref $@ eq '') ? \$@ : $@ ); }