aboutsummaryrefslogtreecommitdiff
path: root/challenge-001/abigail/perl/ch-1.pl
blob: fb4fd7e2337a574afe0474caa8224f8b58705696 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/opt/perl/bin/perl

use 5.032;

use strict;
use warnings;
no  warnings 'syntax';

use experimental 'signatures';
use experimental 'lexical_subs';

#
# See https://theweeklychallenge.org/blog/perl-weekly-challenge-001
#

#
# Run as: perl ch-1.pl < input-file
#

while (<>) {
    my $changes = y/e/E/;
    say $_, $changes
}