File: ReverseFoo.pm

package info (click to toggle)
libcode-tidyall-perl 0.83~ds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,036 kB
  • sloc: perl: 5,240; lisp: 47; makefile: 2; sh: 1
file content (12 lines) | stat: -rw-r--r-- 220 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
package TestHelper::Plugin::ReverseFoo;

use Path::Tiny qw(path);
use Moo;
extends 'Code::TidyAll::Plugin';

sub transform_file {
    my ( $self, $file ) = @_;
    $file->spew( scalar( reverse( $file->slurp ) ) );
}

1;