Skip Menu |

This queue is for tickets about the YAML-Tiny CPAN distribution.

Report information
The Basics
Id: 71169
Status: resolved
Priority: 0/
Queue: YAML-Tiny

People
Owner: Nobody in particular
Requestors: ribasushi [...] leporine.io
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: YAML::Tiny fails if no sufficient Scalar::Util available (trivial bugfix)
YAML/Tiny.pm contains the following code: BEGIN { local $@; eval { require Scalar::Util; }; if ( $@ or $Scalar::Util::VERSION < 1.18 ) { eval <<'END_PERL' if $@; sub refaddr { ... The string-eval therefore is never fired IFF S::U is older than 1.18 but present (the if $@ after the eval << must go).
Fixed in YAML::Tiny 1.48
On Wed Nov 02 01:20:18 2011, ADAMK wrote: Show quoted text
> Fixed in YAML::Tiny 1.48
Reopening this ticket as I am utterly confused. 1.48 is a version from February this year. There is a newer version 1.50 from June this year. This is the offending line in the current version (1.50): https://metacpan.org/source/ADAMK/YAML-Tiny-1.50/lib/YAML/Tiny.pm#L617 And this is the same problem in the version you cite (1.48): https://metacpan.org/source/ADAMK/YAML-Tiny-1.48/lib/YAML/Tiny.pm#L617 To re-iterate - the problem is that the string eval will *not run* if $@ is not set, which is the case when Scalar::Util is present but old.
This bug was reported again as 74781
Fixed in 1.51
Fix confirmed.