X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlfunc.pod;h=88cbb0a6e5fcd91ee83ac562bc89084254856163;hb=151210d1da6387892e1804f7c0c65f5a4da5f893;hp=c9efcd12313b95dedf3b3049838ee062b5c0e1ea;hpb=3cb0bbe5af1ac1b0e46bbee66b7b457629e7ffa3;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index c9efcd1..88cbb0a 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -5273,9 +5273,13 @@ to give the expression the correct precedence as in vec($image, $max_x * $x + $y, 8) = 3; -Vectors created with C can also be manipulated with the logical -operators C<|>, C<&>, and C<^>, which will assume a bit vector -operation is desired when both operands are strings. +If the selected element is off the end of the string, the value 0 is +returned. If an element off the end of the string is written to, +Perl will first extend the string with sufficiently many zero bytes. + +Strings created with C can also be manipulated with the logical +operators C<|>, C<&>, C<^>, and C<~>. These operators will assume a bit +vector operation is desired when both operands are strings. See L. The following code will build up an ASCII string saying C<'PerlPerlPerl'>.