Skip to content

Commit

Permalink
Perl golf
Browse files Browse the repository at this point in the history
  • Loading branch information
sshine committed Jan 6, 2025
1 parent 1e4bd89 commit c115ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concieggs/filters/niels
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ use warnings;
use utf8::all;
use EggsML::EggsPI list => [qw(allAliases)];

my %nielses = map { lc $_ => 1 } allAliases; while (<>) { s/\b(\S*)\b/$nielses{lc($1)} ? "Niels" : $1/ge; print; }
my%nielses=map{lc$_=>1}allAliases;while(<>){s/\b(\S*)\b/$nielses{lc($1)}?"Niels":$1/ge;print}

0 comments on commit c115ba7

Please sign in to comment.