in reply to printing a package result within quotes


Perl will interpolate $d but not the entire method $d->Y

If that is really what you need to do then you could try the following inelegant construction:     print "@{[$d->Y]}";

However, it would be better to just store the return value of the method in a scalar and then interpolate that in a string.

--
John.