NAME
Text::Chompp - chomp and chop replacements that pass the changed
value(s) back
VERSION
version 0.001
SYNOPSIS
use Text::Chompp qw/ chompp chopp /;
...
# all the following work:
my $chomped = chompp $string;
my $chomped = chompp $_;
my @chomped = map { chompp } @strings;
my @chomped = chompp @strings;
foreach () {
chompp;
push @chomped;
}
# ... etc ...
DESCRIPTION
Alternative to the builtins "chop" and "chomp", which leave the original
intact, and instead return the altered value. The intention is to take
the same arguments as the originals.
LIMITATIONS
Text::Chompp will not process the values of hashes (as chop/chomp do).
SEE ALSO
Text::Chomped - requires alternative syntax for lists
SUPPORT
Bugs / Feature Requests
Please report any bugs or feature requests through the issue tracker at
. You will be notified
automatically of any progress on your issue.
Source Code
This is open source software. The code repository is available for
public review and contribution under the terms of the license.
git clone git://github.com/mjemmeson/text-chompp.git
AUTHOR
Michael Jemmeson
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Michael Jemmeson
.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.