perl-Text-ParseWords-3.270.0-3-rosa.lts2012.0.noarch.rpm


Advertisement

Description

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

Distribution: ROSA Enterprise Desktop
Repository: ROSA Contrib Updates x86_64
Package name: perl-Text-ParseWords
Package version: 3.270.0
Package release: 3-rosa.lts2012.0
Package architecture: noarch
Package type: rpm
Installed size: 12.89 KB
Download size: 12.25 KB
Official Mirror: mirror.rosalab.ru
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.

Alternatives

Requires

Provides

  • perl(Text::ParseWords) == 3.270.0
  • perl-Text-ParseWords == 3.270.0-3:2012.0

    Install Howto

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

    Files

    • /usr/lib/perl5/vendor_perl/5.12.3/Text/ParseWords.pm
    • /usr/share/doc/perl-Text-ParseWords/CHANGES
    • /usr/share/doc/perl-Text-ParseWords/README
    • /usr/share/man/man3/Text::ParseWords.3pm.xz

    Changelog

    2011-04-25 - Funda Wang <fwang@mandriva.org> 3.270.0-3mdv2011.0 + Revision: 658552 - rebuild for updated spec-helper

    2010-07-13 - J?r?me Quelin <jquelin@mandriva.org> 3.270.0-2mdv2011.0 + Revision: 552180 - rebuild

    2009-07-12 - J?r?me Quelin <jquelin@mandriva.org> 3.270.0-1mdv2010.0 + Revision: 395250 - import perl-Text-ParseWords

    2009-07-12 - cpan2dist 3.27-1mdv - initial mdv release, generated with cpan2dist

    Advertisement
    Advertisement