Putting $message in quotes gets you one interpolation, then eval'ing the "H...\n" (with its quotes) gets you another.  ...but as mentioned above (and probably below), there are Better Ways To Do It.$message = '"Hello $name\n"'; #. . . other code that does unrelated stuff . . . $name = "Larry Wall"; print eval "$message";
In reply to Re: Postdefining scalars
by petral
in thread Postdefining scalars
by markwild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |