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: 52421
Status: open
Priority: 0/
Queue: YAML

Owner: Nobody in particular
Requestors: erik.ostlyngen [...]

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

CC: ingy [...]
Subject: Bug in YAML::Loader, code tags are executed twice
Date: Fri, 04 Dec 2009 09:03:05 +0100
To: bug-YAML [...]
From: "Erik P. Ostlyngen" <erik.ostlyngen [...]>
Download (untitled) / with headers
text/plain 675b
When using YAML::Marshall to create perl code tags, the tag code is executed twice if the tag argument is on the same line (inline). The following code snippet illustrates the problem: use YAML; use YAML::Marshall 'mister'; sub yaml_load { my $self = shift; my $node = $self->SUPER::yaml_load(@_); return "Mr ".$$node; } my $yaml = Load(<< '...'); name: !mister Jones ... print $yaml->{name}, "\n"; ----- Here, the yaml_load method for the 'mister' tag is executed twice. First with 'Jones' as input, then with 'Mr Jones' as input. So, the resulting name becomes 'Mr Mr Jones'. This problem was seen in YAML 0.70, on Linux, Ubuntu Jaunty. Regards, EPO
Download (untitled) / with headers
text/plain 247b
This issue has been copied to: 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 infrastructure.

Please report any issues with to