diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2015-03-17 15:05:37 +0000 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2015-03-17 15:06:02 +0000 |
commit | a790e34851cb2a6d181d9cc91717b41d5917db7b (patch) | |
tree | b55fe9980d099382cb2829b46ed10ba315379fe9 /cpan/Text-ParseWords | |
parent | c5fb6bf8085ed840a95d03bfc398ea2cbb5af237 (diff) | |
download | perl-a790e34851cb2a6d181d9cc91717b41d5917db7b.tar.gz |
Upgrade Text::ParseWords from version 3.29 to 3.30
This incorporates blead's code differences, but one "customization" remains
because of EOL issues, which I've sent a pull request upstream to fix.
The latest release also moves the .pm file into the usual place, so the MAP
is no longer required.
There are no code changes here, so no code freeze violation.
Diffstat (limited to 'cpan/Text-ParseWords')
-rw-r--r-- | cpan/Text-ParseWords/lib/Text/ParseWords.pm | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/cpan/Text-ParseWords/lib/Text/ParseWords.pm b/cpan/Text-ParseWords/lib/Text/ParseWords.pm index 8771d43647..87f9c70a21 100644 --- a/cpan/Text-ParseWords/lib/Text/ParseWords.pm +++ b/cpan/Text-ParseWords/lib/Text/ParseWords.pm @@ -2,7 +2,7 @@ package Text::ParseWords; use strict; require 5.006; -our $VERSION = "3.29"; +our $VERSION = "3.30"; use Exporter; @@ -202,8 +202,8 @@ 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 +split on the specified delimiter, but all other characters (including +quotes and backslashes) 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., "ewords() tries to interpret these characters just like the Bourne @@ -243,27 +243,27 @@ demonstrating: =over 4 -=item 0 +=item 0Z<> a simple word -=item 1 +=item 1Z<> multiple spaces are skipped because of our $delim -=item 2 +=item 2Z<> use of quotes to include a space in a word -=item 3 +=item 3Z<> use of a backslash to include a space in a word -=item 4 +=item 4Z<> use of a backslash to remove the special meaning of a double-quote -=item 5 +=item 5Z<> another simple word (note the lack of effect of the backslashed double-quote) @@ -295,4 +295,9 @@ for assuring me that a &nested_quotewords() would be useful, and to Jeff Friedl <jfriedl@yahoo-inc.com> for telling me not to worry about error-checking (sort of-- you had to be there). +=head1 COPYRIGHT AND LICENSE + +This library is free software; you may redistribute and/or modify it +under the same terms as Perl itself. + =cut |