Name

substr

Synopsis

substr DEST, STRING, OFFSET, LENGTH
substr DEST, STRING, OFFSET, LENGTH, REPLACE 
substr DEST, OFFSET, LENGTH, REPLACE
               

Return a substring of a string. If REPLACE is given, also replace substring in STRING. If STRING is left out, replace substring in DEST.

Get Perl 6 Essentials 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.