summaryrefslogtreecommitdiff
path: root/pod/perlop.pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-08-30 21:20:50 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-30 21:20:50 +0000
commitb9f7914694d22ad96effe91938bfaeb79e34b8f4 (patch)
treed1f07e360c349c73e52b3b40f93111e08f346180 /pod/perlop.pod
parenta7f7c56a0c6842f0550ac1a91afcc345cdc1a578 (diff)
downloadperl-b9f7914694d22ad96effe91938bfaeb79e34b8f4.tar.gz
Document the undefinedness of overshifting.
p4raw-id: //depot/cfgperl@4055
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r--pod/perlop.pod8
1 files changed, 6 insertions, 2 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index 14ca6b5ec0..2b5b789ea6 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -220,11 +220,15 @@ Binary "." concatenates two strings.
Binary "<<" returns the value of its left argument shifted left by the
number of bits specified by the right argument. Arguments should be
-integers. (See also L<Integer Arithmetic>.)
+integers. (See also L<Integer Arithmetic>.) Shifting more than the
+width of the available integer in bits (usually 32 or 64) produces
+undefined (machine dependent) results.
Binary ">>" returns the value of its left argument shifted right by
the number of bits specified by the right argument. Arguments should
-be integers. (See also L<Integer Arithmetic>.)
+be integers. (See also L<Integer Arithmetic>.) Shifting more than the
+width of the available integer in bits (usually 32 or 64) produces
+undefined (machine dependent) results.
=head2 Named Unary Operators