$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.
In reply to Re: Replace all at once
by Beatnik
in thread Replace all at once
by Parham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |