in reply to Postdefining scalars

Do a search for "expanding variables in strings". One hit of note is Another question about expanding variables in text strings.

japhy -- Perl and Regex Hacker