From: Jarkko Hietaniemi Date: Sat, 14 Jun 2003 08:56:11 +0000 (+0000) Subject: Slight tweaks on the length() and chr() entries, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=974da8e5aded27d81bcf7d5c0c5998c377065269;p=p5sagit%2Fp5-mst-13.2.git Slight tweaks on the length() and chr() entries, passing-by rewrapping on the rmdir entry. p4raw-id: //depot/perl@19776 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index e10ca60..ac20efc 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -732,10 +732,14 @@ chr(0x263a) is a Unicode smiley face. Note that characters from 127 to 255 (inclusive) are by default not encoded in Unicode for backward compatibility reasons (but see L). +If NUMBER is omitted, uses C<$_>. + For the reverse, use L. -See L and L for more about Unicode. -If NUMBER is omitted, uses C<$_>. +Note that under the C pragma the NUMBER is masked to +the low eight bits. + +See L and L for more about Unicode. =item chroot FILENAME @@ -2428,11 +2432,15 @@ If EXPR is omitted, uses C<$_>. =item length -Returns the length in characters of the value of EXPR. If EXPR is +Returns the length in I of the value of EXPR. If EXPR is omitted, returns length of C<$_>. Note that this cannot be used on an entire array or hash to find out how many elements these have. For that, use C and C respectively. +Note the I: if the EXPR is in Unicode, you will get the +number of characters, not the number of bytes. To get the length +in bytes, use C, see L. + =item link OLDFILE,NEWFILE Creates a new filename linked to the old filename. Returns true for @@ -4198,9 +4206,9 @@ last occurrence at or before that position. =item rmdir -Deletes the directory specified by FILENAME if that directory is empty. If it -succeeds it returns true, otherwise it returns false and sets C<$!> (errno). If -FILENAME is omitted, uses C<$_>. +Deletes the directory specified by FILENAME if that directory is +empty. If it succeeds it returns true, otherwise it returns false and +sets C<$!> (errno). If FILENAME is omitted, uses C<$_>. =item s///