perl-Text-ParseWords - Parse strings containing shell-style quoting

Distribution: Mageia Cauldron
Repository: Mageia Core i586
Package name: perl-Text-ParseWords
Package version: 3.300.0
Package release: 3.mga6
Package architecture: noarch
Package type: rpm
Installed size: 15.21 KB
Download size: 16.85 KB
Official Mirror:
The &nested_quotewords() 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 &nested_quotewords() returns a list of token lists corresponding to the elements of @lines. &parse_line() does tokenizing on a single string. The &*quotewords() functions simply call &parse_line(), so if you're only splitting one line you can call &parse_line() directly and save a function call. The $keep argument is a boolean flag. If true, then the tokens are split on the specified delimiter, but all other characters (quotes, backslashes, etc.) are kept in the tokens. If $keep is false then the &*quotewords() functions remove all quotes and backslashes that are not themselves backslash-escaped or inside of single quotes (i.e., &quotewords() tries to interpret these characters just like the Bourne shell). NB: these semantics are significantly different from the original version of this module shipped with Perl 5.000 through 5.004. As an additional feature, $keep may be the keyword "delimiters" which causes the functions to preserve the delimiters in each string as tokens in the token lists, in addition to preserving quote and backslash characters. &shellwords() is written as a special case of &quotewords(), and it does token parsing with whitespace as a delimiter-- similar to most Unix shells.



  • perl(Text::ParseWords) == 3.300.0
  • perl-Text-ParseWords == 3.300.0-3.mga6

    Install Howto

    1. Enable Mageia Core repository on "Install and Remove Software"
    2. Update packages list:
      # urpmi.update -a
    3. Install perl-Text-ParseWords rpm package:
      # urpmi perl-Text-ParseWords


    • /usr/lib/perl5/vendor_perl/5.22.2/Text/
    • /usr/share/doc/perl-Text-ParseWords/CHANGES
    • /usr/share/doc/perl-Text-ParseWords/META.json
    • /usr/share/doc/perl-Text-ParseWords/META.yml
    • /usr/share/doc/perl-Text-ParseWords/MYMETA.yml
    • /usr/share/doc/perl-Text-ParseWords/README
    • /usr/share/man/man3/Text::ParseWords.3pm.xz


    2016-06-19 - pterjan <pterjan> 3.300.0-3.mga6 + Revision: 1035029 - Rebuild for perl 5.22.2

    2016-02-18 - umeabot <umeabot> 3.300.0-2.mga6 + Revision: 967368 - Mageia 6 Mass Rebuild

    2015-06-30 - sander85 <sander85> 3.300.0-1.mga6 + Revision: 848768 - update to 3.30

    2014-10-15 - umeabot <umeabot> 3.290.0-5.mga5 + Revision: 750363 - Second Mageia 5 Mass Rebuild

    2014-09-16 - umeabot <umeabot> 3.290.0-4.mga5 + Revision: 686640 - Mageia 5 Mass Rebuild

    2014-02-10 - jquelin <jquelin> 3.290.0-3.mga5 + Revision: 588027 - rebuild after perl 5.18.2

    2013-10-19 - umeabot <umeabot> 3.290.0-2.mga4 + Revision: 526291 - Mageia 4 Mass Rebuild