Any_utka
Junior Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору s/foo/bar/; replaces the first occurrence of the exact character sequence foo in the “current string” (in special variable $_) by the character sequence bar; for example, foolish bigfoot would become barlish bigfoot s/foo/bar/g; replaces any occurrence of the exact character sequence foo in the “current string” by the character sequence bar; for example, foolish bigfoot would become barlish bigbart s/foo/bar/gi; replaces any occurrence of foo case-insensitively in the “current string” by the character sequence bar (e.g. Foo and FOO get replaced by bar too) |