The "g" modifier means to replace globally, not just once (which is the default).foreach $Line (@code) { $Line =~ s!"(.*)"!<b>"$1"</b>!g; print "$Line\n"; }
mr.nick ...
In reply to Re: loop execution
by mr.nick
in thread loop execution
by staeryatz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |