diff options
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldelta.pod | 11 | ||||
-rw-r--r-- | pod/perlop.pod | 5 |
2 files changed, 12 insertions, 4 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod index d1f0261cc4..e271e7dd2e 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -266,6 +266,17 @@ See L<Tie::Array>. Several missing hooks have been added. There is also a new base class for TIEARRAY implementations. See L<Tie::Array>. +=head2 4th argument to substr + +substr() can now both return and replace in one operation. The optional +4th argument is the replacement string. See L<perlfunc/substr>. + +=head2 Negative LENGTH argument to splice + +Splice() with a negative LENGTH argument now work similar to what the +LENGTH did for substr(). Previously a negative LENGTH was treated as +0. See L<perlfunc/splice>. + =head1 Supported Platforms diff --git a/pod/perlop.pod b/pod/perlop.pod index d9cfccf948..07ff51ac21 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -187,10 +187,7 @@ operands C<$a> and C<$b>: If C<$b> is positive, then C<$a % $b> is C<$a> minus the largest multiple of C<$b> that is not greater than C<$a>. If C<$b> is negative, then C<$a % $b> is C<$a> minus the smallest multiple of C<$b> that is not less than C<$a> (i.e. the -result will be less than or equal to zero). If C<use integer> is -in effect, the native hardware will be used instead of this rule, -which may be construed a bug that will be fixed at some point. - +result will be less than or equal to zero). Note than when C<use integer> is in scope, "%" give you direct access to the modulus operator as implemented by your C compiler. This operator is not as well defined for negative operands, but it will |