Front page | perl.perl6.language |
Postings from August 2006
String length
From:
Reed, Mark
Date:
August 17, 2006 09:30
Subject:
String length
Message ID:
CC5841641559A4449EE25CD22EBB9F5A045DF52A@ATLMSG04.turner.com
S02 states that there is no ".length" method on Str's (or for cumulative
element length of Arrays); you have to ask explicitly for the units you
want to count . But then it goes on to define the StrPos and StrLen
types, which are unit-agnostic. So why not have a .length that returns
a StrLen? I envison some method or sub wanting to have access to the
length of a string, without necessarily having the string itself
available, in a context where the caller wouldn't know what level of
Unicode abstraction to use.
-
String length
by Reed, Mark