in reply to Creating a class that acts as a descriptor
See Tie::Handle, specifically Tie::StdHandle for an easy way. You don't have to overload <> to do this, either.