CMD + K

perl-text-parsewords-amzn2-aarch64

Community

(CDT) Parse text into an array of tokens or array of arrays

Installation

To install this package, run one of the following:

Conda
$conda install aarch64-staging::perl-text-parsewords-amzn2-aarch64

Usage Tracking

3.29
1 / 8 versions selected
Downloads (Last 6 months): 0

Description

The nestedquotewords() and quotewords() functions accept a delimiter (which can be a regular expression) and a list of lines and then breaks those lines up into a list of words ignoring delimiters that appear inside quotes. quotewords() returns all of the tokens in a single long list, while nestedquotewords() returns a list of token lists corresponding to the elements of @lines. parseline() does tokenizing on a single string. The quotewords() functions simply call &parseline(), so if you're only splitting one line you can call parse_line() directly and save a function call.

About

Summary

(CDT) Parse text into an array of tokens or array of arrays

Last Updated

Mar 15, 2021 at 11:27

License

GPL+ or Artistic

Total Downloads

16

Supported Platforms

noarch