Actually, you can interpolate calls to getter methods inside a string. Consider the below:
"this is the result: ${\$obj->get_whatever}"Slightly strange syntax, but it works fine for any Perl expression that evaluates to a scalar (though you'll need to put non-trivial expressions in parenthesis).
In reply to Re: bless + tie
by Anonymous Monk
in thread bless + tie
by cbraga
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |