CPU: Perl, Fall 2005 Perl, Week 2: Arrays, Hashes, Control Structures #9

More Interpolation

$fruit = "apple";
print "I ate four $fruits\n";
print "I ate four ${fruit}s\n";
Copyright © 2005 Ian Langworth