in reply to Replacing multiple matches
my @matches = $loop_line =~/\[(.*?)\]/; # Build a list of matches for ( @matches ) { $loop_line =~ s/\Q$_\E/$replace{$_}/; # \Q makes sure no strange t +hings happen }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Replacing multiple matches
by Abigail-II (Bishop) on Feb 16, 2004 at 12:08 UTC | |
by Berik (Sexton) on Feb 17, 2004 at 00:05 UTC | |
by Abigail-II (Bishop) on Feb 17, 2004 at 00:32 UTC |