diff options
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index d02b9ba437..323b83d247 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -5516,8 +5516,13 @@ If an element off the end of the string is written to, Perl will first extend the string with sufficiently many zero bytes. It is an error to try to write off the beginning of the string (i.e. negative OFFSET). -The string must not contain any character with value > 255 (which -can only happen if you're using UTF8 encoding). +The string should not contain any character with the value > 255 (which +can only happen if you're using UTF8 encoding). If it does, it will be +treated as something which is not UTF8 encoded. When the C<vec> was +assigned to, other parts of your program will also no longer consider the +string to be UTF8 encoded. In other words, if you do have such characters +in your string, vec() will operate on the actual byte string, and not the +conceptual character string. Strings created with C<vec> can also be manipulated with the logical operators C<|>, C<&>, C<^>, and C<~>. These operators will assume a bit |