Cari di Perl 
    Perl User Manual
Daftar Isi
(Sebelumnya) Return a string with just the ...Convert a string to an octal number (Berikutnya)
Functions for SCALARs or strings

Return the number of bytes in a string

Daftar Isi

  • length EXPR

  • 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.

 
Source : perldoc.perl.org - Official documentation for the Perl programming language
Site maintained by Jon Allen (JJ)     See the project page for more details
Documentation maintained by the Perl 5 Porters
(Sebelumnya) Return a string with just the ...Convert a string to an octal number (Berikutnya)