Start with something simple, e.g. printing a file line by line:
while (my $line = <>) {
print $line;
}Then replace all 'a' by 'b':while (my $line = <>) {
s/a/b/g; # g: all occurences
print $line;
}And so on... ;-)https://lobste.rs/c/k7wo1p
