Name

stringinfo

Synopsis

stringinfo DEST, STRING, FLAG
               

Return information about a string. An integer flag selects which information to return, as listed in Table 11-2.

Arguments: IR, S, I

Table 11-2. stringinfo arguments

Flag

Returns

1

Location of string buffer header

2

Location of start of string memory

3

Allocated length, in bytes

4

String flags

5

Length of string buffer currently used, in bytes

6

String length, in characters

Get Perl 6 and Parrot Essentials, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.