in reply to Your favorite objects NOT of the hashref phylum

Well, there's the whole inside-out object approach, which can use just about any type of blessed object -- though often just a blessed scalar. See Class::InsideOut or Object::InsideOut for good implementations.

For my inside-out objects talk, I wrote File::Marker as an example of using a blessed filehandle as the underlying type.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

  • Comment on Re: Your favorite objects NOT of the hashref phylum