in reply to loop execution
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 ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: loop execution
by staeryatz (Monk) on Oct 25, 2001 at 08:18 UTC |