my $lamb; $lamb->{data}[0] = 'wolf'; my $mary = "Little Rabbit Foo Foo"; my $template = '$mary had a little $lamb->{data}[0].'; $text = eval qq{"$template"}; print $text;
You're treading down a dangerous path. Why don't you use an existing template system instead of rolling out your own?
In reply to Re^2: expanding quoted referenced data
by ikegami
in thread expanding quoted referenced data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |