in reply to Re: Cannot write data struct to %ENV
in thread Cannot write data struct to %ENV

Thank you very much!! Now the puzzle is solved and lesson learned. Could you elaborate more about why this is not reliable though?

Replies are listed 'Best First'.
Re^3: Cannot write data struct to %ENV
by Discipulus (Canon) on Jun 11, 2015 at 10:03 UTC
    If the behaviour change between version of Perl, it is unreliable. In the ENV (of your OS) values will always be stringyfied, older Perl version had permit you to add datastructure to %ENV, but this is not logic as Env will contain only strings. So the behaviour was corrected.
    See also Environment and wikipedia too.

    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.