From f2b58637540209598dcb77ca7075309da337f4ad Mon Sep 17 00:00:00 2001 From: Kent Fredric Date: Sun, 16 Dec 2012 02:13:39 +1300 Subject: [PATCH] pod/perl5180delta.pod: Clarify %ENV Changes Clarifies the slightly vague ( and possibly wrong ) explanation for the change in %ENV behaviour. --- pod/perl5180delta.pod | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pod/perl5180delta.pod b/pod/perl5180delta.pod index 66439413..86c4289 100644 --- a/pod/perl5180delta.pod +++ b/pod/perl5180delta.pod @@ -534,12 +534,16 @@ in L. =head2 Defined values stored in environment are forced to byte strings -A value stored in an environment variable has always been stringified. In this -release, it is converted to be only a byte string. First, it is forced to be -only a string. Then if the string is utf8 and the equivalent of -C works, that result is used; otherwise, the equivalent of -C is used, and a warning is issued about wide characters -(L). +A value stored in an environment variable has always been stringified when +inherited by child processes. + +In this release, when assigning to C<%ENV>, values are immediately stringified, +and converted to be only a byte string. + +First, it is forced to be a only a string. Then if the string is utf8 and the +equivalent of C works, that result is used; otherwise, the +equivalent of C is used, and a warning is issued about wide +characters (L). =head2 C dies for unreadable files -- 1.8.3.1