But what I got is 'MyExtraConfig' => 'Hash (0x*****)' I then try print Dumper $ENV{MyExtraConfig} and now I got nothing. I even tried print keys %{$ENV{MyExtraConfig}} and still got nothing. This code can run without on my XP with perl 5.12 without problem at all, but it happen on my Win7 with perl 5.18. Any clues for where I gone wrong ?package A; BEGIN { $ENV{MyExtraConfig} = { foo=>{Bar => "Blaz"}} } 1; #main use A; use Data::Dumper; print Dumper \%ENV;
In reply to Cannot write data struct to %ENV by exilepanda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |