Possible Duplicate:
Can Perl string interpolation perform any expression evaluation?
I know I can print a variable inside of a string in quotations like:
print "my variable foo = $foo"
Is there a way to do the same for methods? Something like:
print "my method evaluates to $some_obj->someMethod()"