3 ms·
I know Perl gets no love here, and for good reason sometimes, but I have a hard time believing that code full of syntactical characters like if .["found"] th
by kjellsbells 1y ago
I know Perl gets no love here, and for good reason sometimes, but I have a hard time believing that code full of syntactical characters like
if .["found"] then
. | .after += [$arg]
elif $arg == "--" then
. | .found = true
else
. | .before += [$arg]
end
or
for (i = $indicies) if { ~ $*($i) -- } {
before = <= {
...
...is more readable and maintainable than:
my ($before, $after) = split /\s*--\s*/, $input;
my @list1 = split ' ', $before;
...