Parses lines of text and returns an array of words. Provides three functions.
old_shellwords |
Splits an array of lines into words. Exported on request. Same as the pre-Perl 5 program shellwords.pl.
quotewords |
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.
shellwords |
Works like old_shellwords, but does not default to using $_ if there is no argument. Exported by default.
8.205. Text::Balanced | 8.207. Text::Soundex |
Copyright © 2002 O'Reilly & Associates. All rights reserved.