in reply to Tying objects

Use tied to get to the actual object that implements the behaviour of $var:
tied($var)->print_method;

Replies are listed 'Best First'.
Re^2: Tying objects
by JadeNB (Chaplain) on Feb 08, 2009 at 00:04 UTC
    To elaborate on this, what tie accomplishes is to make Perl pretend that a reference object is something else. That is, it acts here as if $var is a simple scalar, not a reference object. (It's probably easier to see that this must be the case when tieing an array or a hash.)