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: 65193
Status: resolved
Priority: 0/
Queue: YAML

People
Owner: Nobody in particular
Requestors: IKEGAMI [...] cpan.org
Cc:
AdminCc:

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



Subject: used only once warnings
Show quoted text
----- BEGIN CODE ----- use strict; use warnings; use YAML qw( ); local $YAML::UseCode = 1; my $s = YAML::Load(<<'__EOI__'); --- - !!perl/code | { print "Hello World\n"; } __EOI__ $s->[0]->();
----- END CODE -----
----- BEGIN OUTPUT ----- Name "YAML::UseCode" used only once: possible typo at x.pl line 6. Hello World ----- END OUTPUT ----- That warning is spurious. Please add the following to YAML to silence it:
----- BEGIN CODE ----- use vars qw( $UseCode ); ----- END CODE ----- The same applies to the other global config variables.
This issue has been copied to: https://github.com/ingydotnet/yaml-pm/issues/109 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.
Thanks! Fixed in 1.20_002