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