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

People
Owner: Nobody in particular
Requestors: roderick [...] argon.org
Cc:
AdminCc:

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



To: bug-YAML [...] rt.cpan.org
From: Roderick Schertler <roderick [...] argon.org>
Subject: DumpCode claims to support a code ref to serialize code, but doesn't
Date: Wed, 25 May 2005 10:21:27 -0400
The DumpCode option says you can set it to a code ref to control the serializing yourself, but this doesn't work. $ perl -MYAML -we ' $YAML::DumpCode = sub { return "dumped code $_[0]", "test" }; print YAML::Dump(sub { "foo" });' --- !perl/code: "{\n 'foo';\n}\n" $ _ YAML::Transfer::code::yaml_dump() doesn't look to have any code to support a DumpCode which is a code ref, it only tests it as a boolean. -- Roderick Schertler roderick@argon.org
This issue has been copied to: https://github.com/ingydotnet/yaml-pm/issues/46 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.
The documentation has been updated to reflect the reality. This probably won't be supported in YAML.pm, but it will be possible in YAML::PP.