exilepanda has asked for the wisdom of the Perl Monks concerning the following question:
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cannot write data struct to %ENV
by Discipulus (Canon) on Jun 11, 2015 at 09:25 UTC | |
by Corion (Patriarch) on Jun 11, 2015 at 09:30 UTC | |
by exilepanda (Friar) on Jun 11, 2015 at 09:47 UTC | |
by Discipulus (Canon) on Jun 11, 2015 at 10:03 UTC | |
|
Re: Cannot write data struct to %ENV
by Corion (Patriarch) on Jun 11, 2015 at 09:24 UTC | |
|
Re: Cannot write data struct to %ENV
by choroba (Cardinal) on Jun 11, 2015 at 09:27 UTC |