Movatterモバイル変換


[0]ホーム

URL:


functions /length
(source,CPAN)
You are viewing the version of this documentation from Perl 5.8.3.View the latest version
#length EXPR
#length

Returns the length incharacters of the value of EXPR. If EXPR is omitted, returns length of$_. Note that this cannot be used on an entire array or hash to find out how many elements these have. For that, usescalar @array andscalar keys %hash respectively.

Note thecharacters: if the EXPR is in Unicode, you will get the number of characters, not the number of bytes. To get the length in bytes, usedo { use bytes; length(EXPR) }, seebytes.

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2025 Movatter.jp