| Functions for SCALARs or stringsReturn the number of bytes in a stringDaftar Isi - length
Returns the length in characters of the value of EXPR. If EXPR isomitted, returns the length of $_ . If EXPR is undefined, returnsundef . This function cannot be used on an entire array or hash to find out howmany elements these have. For that, use scalar @array and scalar keys%hash , respectively. Like all Perl character operations, length() normally deals in logicalcharacters, not physical bytes. For how many bytes a string encoded asUTF-8 would take up, use length(Encode::encode_utf8(EXPR)) (you'll haveto use Encode first). See Encode and perlunicode. |
| |
|