in reply to Postdefining scalars
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";
|
|---|