The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
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 (<FILE>) {
        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
    <https://github.com/mjemmeson/text-chompp/issues>. 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.

    <https://github.com/mjemmeson/text-chompp>

      git clone git://github.com/mjemmeson/text-chompp.git

AUTHOR
    Michael Jemmeson <mjemmeson@cpan.org>

COPYRIGHT AND LICENSE
    This software is copyright (c) 2013 by Michael Jemmeson
    <mjemmeson@cpan.org>.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.