- Timestamp:
- 01/02/08 01:26:09 (12 months ago)
- Files:
-
- 1 modified
-
docs/Perl6/Spec/Functions.pod (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/Perl6/Spec/Functions.pod
r17750 r19300 13 13 Mark Stosberg <mark@summersault.com> 14 14 Date: 12 Mar 2005 15 Last Modified: 1 6 Mar 200716 Version: 1 415 Last Modified: 1 Jan 2008 16 Version: 15 17 17 18 18 This document attempts to document the list of builtin functions in Perl 6. … … 1357 1357 our Str multi method substr (Str $string: StrPos $start, StrLen $length?) is rw is export 1358 1358 our Str multi method substr (Str $string: StrPos $start, StrPos $end?) is rw is export 1359 our Str multi method substr (Str $string: StrPos $start, Int $length) is rw is export 1359 1360 1360 1361 C<substr> returns part of an existing string. You control what part by … … 1362 1363 If you pass a number as either the position or length, then it will be used 1363 1364 as the start or length with the assumtion that you mean "chars" in the 1364 current Unicode abstraction level, which defaults to graphemes. 1365 current Unicode abstraction level, which defaults to graphemes. A number 1366 in the 3rd argument is interpreted as a length rather than a position (just 1367 as in Perl 5). 1365 1368 1366 1369 Here is an example of its use:
