This is the perl script:
while ($line = <>)
if ($line =~ m/^ *$/)
$line = "--blank\n";
That replaces all blank lines in file with
I don't get why it is working. Why does this regex
matches blank lines ? Because there is newline character at the end of line it must not match.
is the beginning of line,
is no or as many spaces as possible,
end of line.
Empty line must be something like this:
[ ][ ][ ]\n
Why do they match ?