No, it will replace $var with the string print "Blah";\n, so when you run it you'll get
as your output, which is probably not what you want.print "Blah"; eval print "Blah"; ;
See Masem's post and stephen's post below for how to do more interesting interpolation.
In reply to Re: Re: Re: Working with Variables
by ChemBoy
in thread Working with Variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |