in reply to replace multiplication symbol (×)

The star("*") is a special character to a regexp. It means match 0 or more times. To remove the special significance you need to escape it to turn it into text.

for (@input) {s/\×//g};
Another trick is to make it part of a character class
for (@input) {s/[×]//g};
In this case the things inside the [] are each considered single characters (excpet for maybe a ^ or -) , where any one of them can match a character. In this case [*] is the character class consisting of only *

Sorry, i did "misread to OP's multiplication symbol ("×") as an asterisk ("*")"., guess im getting old

Replies are listed 'Best First'.
Re^2: replace multiplication symbol (×)
by LanX (Saint) on Aug 20, 2017 at 09:50 UTC
    Sorry I'm confused, why do you identify the characters x and * ?

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

    Update: The above was posted before huck ' s correction