Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the YAML CPAN distribution.

Report information
The Basics
Id: 18793
Status: resolved
Priority: 0/
Queue: YAML

People
Owner: Nobody in particular
Requestors: at [...] altlinux.org
Cc:
AdminCc:

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



Subject: 'eval { use B::Deparse }' is wrong
'use' is executed at compile time and is not affected by eval. You should use 'eval { require ... }' instead. --- YAML-0.58/lib/YAML/Types.pm- 2006-02-02 07:04:03 +0000 +++ YAML-0.58/lib/YAML/Types.pm 2006-04-20 02:41:19 +0000 @@ -117,7 +117,7 @@ sub yaml_dump { } else { bless $value, "CODE" if $class; - eval { use B::Deparse }; + eval { require B::Deparse }; return if $@; my $deparse = B::Deparse->new(); eval { -- Alexey Tourbin ALT Linux Team
This issue has been copied to: https://github.com/ingydotnet/yaml-pm/issues/60 please take all future correspondence there. This ticket will remain open but please do not reply here. This ticket will be closed when the github issue is dealt with.
Released 1.20