$template = "some sentence x"; for $val (1..4) { ($foo = $template) =~ s/x/$val/; print "$val $foo\n"; }
In reply to Re^2: substitution not recompile
by manav
in thread substitution not recompile
by adjohan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |