Skip to content

Commit

Permalink
Merge pull request #33 from haarg/loud-load-error
Browse files Browse the repository at this point in the history
Remove eval around require Scalar::Util
  • Loading branch information
karenetheridge committed Oct 8, 2014
2 parents 73e3e4e + d099eb8 commit 33a2dde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/YAML/Tiny.pm
Original file line number Diff line number Diff line change
Expand Up @@ -828,8 +828,9 @@ sub _can_flock {
# Use Scalar::Util if possible, otherwise emulate it

BEGIN {
require Scalar::Util;
local $@;
if ( eval { require Scalar::Util; Scalar::Util->VERSION(1.18); } ) {
if ( eval { Scalar::Util->VERSION(1.18); } ) {
*refaddr = *Scalar::Util::refaddr;
}
else {
Expand Down

0 comments on commit 33a2dde

Please sign in to comment.