I have the following string:
$_='364*84252';
The question is: how to replace *
in the string with something else? I've tried s/\*/$i/
, but there is an error: Quantifier follows nothing in regex
. On the other hand s/'*'/$i/
doesn't cause any errors, but it also doesn't seem to have any effect at all.