Subject: | !perl/code blocks are evaluated in package main |
!perl/code-blocks are evaluated in package main and not in the
package of the caller of Load/load.
This make this feature broken for use with mod_perl
# line 1067-1071 of YAML.pm (0.35):
# Support for !perl/code;deparse
sub _load_perl_code {
my ($node, $class) = @_;
if ($o->{LoadCode}) {
my $code = eval "package main; sub $node";
I hope this is enough info. I am a newbe at bugreports.
Frans Abels