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
In reply to Re: learning oo
by Zaxo
in thread learning oo
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |