in reply to Replace all at once

s/// to the rescue ! The s/// POD (should explain)explains how you can use it to substitute chars.
$foo = "I love beer ! I really love it"; $foo =~ s/love/adore/g; #This will swap love with adore, every occuran +ce #The g is for global.

Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.