in reply to Creating a class that acts as a descriptor

Why not just tie it to a handle?

See Tie::Handle, specifically Tie::StdHandle for an easy way. You don't have to overload <> to do this, either.

  • Comment on Re: Creating a class that acts as a descriptor