in reply to learning oo
Calls to subs are not interpolated. cephas' solution is correct, or else either
orprint "The color of \$circle is: @{[$circle->getName()]}\n";
depending on whether you want list or scalar context.print "The color of \$circle is: ${\$circle->getName()}\n";
After Compline,
Zaxo
|
|---|