There's also some trick using eval or related (s///ee), but that could cause more trouble than it solves: it's quite errorprone and, worse, a snakepit of security holes.
It really seems to me like you're trying to create a templating system. There's a very good intro articles on templating systems in Choosing a Templating System. Read that first, and see if you still want to go this route.
In reply to Re: substitue variables from file
by bart
in thread substitue variables from file
by azaria
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |