История изменений
Исправление
arturpub,
(текущая версия)
:
По сабжу:
while (<>) {
...
my $orig = $_;
s/.../.../;
print((length($orig) ? (INDENT x $currIndent) : ''), $orig, "\n") if ...;
...
}
s/^\s+|\s+$//g; # remove all spaces on both ends
s/\s+/ /g; # replace all whitespaces inside the string with one space
Исходная версия
arturpub,
:
По сабжу:
while (<>) {
...
my $orig = $_;
s/.../...;
print((length($orig) ? (INDENT x $currIndent) : ''), $orig, "\n") if ...;
...
}
s/^\s+|\s+$//g; # remove all spaces on both ends
s/\s+/ /g; # replace all whitespaces inside the string with one space