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: open
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: 0.58



Subject: 'eval { use B::Deparse }' is wrong
Download (untitled) / with headers
text/plain 520b
'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
Download (untitled) / with headers
text/plain 246b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.