in reply to learning oo

Calls to subs are not interpolated. cephas' solution is correct, or else either

print "The color of \$circle is: @{[$circle->getName()]}\n";
or
print "The color of \$circle is: ${\$circle->getName()}\n";
depending on whether you want list or scalar context.

After Compline,
Zaxo