NAME ^

src/pmc/perl6str.pmc - Perl 6 Strings

DESCRIPTION ^

Perl6Str extends String to provide Perl6-specific string numifying behavior.

Methods ^

INTVAL get_integer()

Returns the value of a Perl 6 string as an integer. For now we just call get_number() and return that as an integer.

FLOATVAL get_number()

Returns the value of a Perl 6 string as a number. Currently this routine understands the "0x", "0d", "0o", and "0b" radix forms, as well as exponents and underscores between pairs of digits.


parrot