Keep It Simple, Stupid | |
PerlMonks |
Re: Cannot write data struct to %ENVby Discipulus (Canon) |
on Jun 11, 2015 at 09:25 UTC ( [id://1129996]=note: print w/replies, xml ) | Need Help?? |
%ENV is meant to expose ENV to Perl. In ENV You just cannot have datastructures, only strings. Even if you can add a datastructure to the Perl %ENV hash i think is not a reliable behaviour. %ENV has also a lot of magic underlying: think about case of the keys.
UPDATE: in the docs is said "As of v5.18.0, both keys and values stored in %ENV are stringified." L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|