Name

new

Synopsis

new DEST, TYPE
new DEST, TYPE, INITIALIZE
new DEST, TYPE, INITIALIZE, PROPS
               

Create a new PMC of type TYPE. INITIALIZE is an array PMC containing initialization data for the new PMC. PROPS is a propety hash.

Arguments: P, I or P, I, P or P, I, P, P

new DEST
new DEST, LENGTH
new DEST, LENGTH, ENCODING
new DEST, LENGTH, ENCODING, TYPE

Allocate a new empty string with a given LENGTH, ENCODING, and TYPE.

Arguments: SR or SR, I or SR, I, I or SR, I, I, I

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.