in reply to bless + tie
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).
|
|---|