Name

quotewords

Synopsis

quotewords (delim, keep, lines)

Accepts delimiter and list of lines and breaks the lines into a list of words at occurrences of the delimiter. Exported by default. Takes the following arguments:

delim

Delimiter, which can be a regular expression. Occurrences inside quotes are ignored.

keep

Boolean. If false, quotes and single backslashes are removed from the list of words returned, and a double backslash is returned as a single backslash. If true, quotes and backslashes are retained.

lines

The list of lines to be parsed.

Get Perl in a Nutshell, 2nd 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.