P is for Practical | |
PerlMonks |
Re: Uer Perl Variable in fileby Anonymous Monk |
on Aug 06, 2012 at 14:24 UTC ( [id://985736]=note: print w/replies, xml ) | Need Help?? |
I don't feel that I understand what you are getting, based on the snippet of source code that I see ... but here is one important thing to keep in mind: the difference between single and double quotes. A string such as 'This is $name' will be output literally as it appears, whereas a string in double quotes such as "This is $name" will have the variable-name interpolated. That is, if $name is Fred, you get: This is Fred in the second case but not the first.
In Section
Seekers of Perl Wisdom
|
|