Next | The Identity Function | 9 |
print "Next year, I will make $SALARY*1.06 dollars\n";
print "I have wallet_contents('pebbles') pebbles in my wallet.\n";
Why do beginners expect these to evaluate?
Because lots of stuff is evaluated inside of strings:
print "Element 3 is $s[3]\n";
print "Roses are $color{Rose}\n";
print "The one you must kill is $data->{People}{Enemies}[$i].\n";
Next | Copyright © 2001 M. J. Dominus |