summaryrefslogtreecommitdiff
path: root/pod/perlfunc.pod
diff options
context:
space:
mode:
authorMike Guy <mjtg@cam.ac.uk>2000-08-23 19:38:46 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-23 17:52:00 +0000
commitfe58ced666d4d8b2252541f18d23bdd3e127c8f9 (patch)
tree54a0d396cf16a574cd4fffa6c1e8d7db063abc46 /pod/perlfunc.pod
parent86d0a7b65418bdabaf45d7a881d3bde91d5f8bee (diff)
downloadperl-fe58ced666d4d8b2252541f18d23bdd3e127c8f9.tar.gz
Re: [ID 20000821.008] Negitive numbers with vec dumps core
Message-Id: <E13ReUA-0000vC-00@virgo.cus.cam.ac.uk> p4raw-id: //depot/perl@6790
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r--pod/perlfunc.pod7
1 files changed, 4 insertions, 3 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 977261936f..0235c37fed 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -5497,9 +5497,10 @@ to give the expression the correct precedence as in
vec($image, $max_x * $x + $y, 8) = 3;
-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.
+If the selected element is outside 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. It is an error
+to try to write off the beginning of the string (i.e. negative OFFSET).
Strings created with C<vec> can also be manipulated with the logical
operators C<|>, C<&>, C<^>, and C<~>. These operators will assume a bit