XP is just a number | |
PerlMonks |
Re: Re: Re: Scoping Variablesby Anonymous Monk |
on May 18, 2001 at 18:13 UTC ( [id://81506]=note: print w/replies, xml ) | Need Help?? |
Yes, you are missing something really simple here. It's called interpolation and it happens inside double quotes. Put this in a script and run it.
$x=1;
print 'single quoted dollar x is $x';
print "\n";
print "double quoted dollar x is $x";
print "\n";
perl -e '
In Section
Seekers of Perl Wisdom
|
|