Удаляет период и конечные нули с конца строки, изменяя «24,00» на «24».В кусках:
s/ substitute operation
\. literal period, not a placeholder
? Period is optional (by the way, probably a bug)
0+ one or more zeros
$ all of this at the end of the string.
// replace it with nothing, i.e., just delete it.
Ошибка?Ну, «2400» будет изменено на «24».Вероятно, не желаемое поведение.