Subject: | Dumping (dummy) code refs does not round trip (and dies) |
If you dump a code ref with YAML::XS, it works and produces:
--- !!perl/code '{ "DUMMY" }'
If you try to load that again, you get a fatal error:
YAML::XS Error: bad tag found for scalar: 'tag:yaml.org,2002:perl/code'
at -e line 1.
Shortest example:
perl -MYAML::XS -e 'my $c=sub{}; my $l =
YAML::XS::Load(YAML::XS::Dump($c));'
Best regards,
Steffen