On Tue, 23 Jan 2001, John Hughes wrote:

> > And indeed, they ought to die. Or be reimplemented. Or something, 
> > but quite simply, don't use them. They'll break, they won't dwim,
> > and chances are they won't play nice with future/past versions of
> > Perl. Forget they even exist.
> 
> Details?
> 
> I'm using them with no problems in 5.005_03 (the real "last stable"
> version) with no problems.
> 
> exists doesn't do what you think, that's the list of problems.

Neither does delete. And overloading doesn't really work properly. And
reloading modules with phashes doesn't work right. And sub-hashes doesn't
work right ($pseudo->{Hash}{SubHash}). And so on...

All they do is hide a multitude of sins, for very little real world
gain. Try it - convert your app back to non-pseudo hashes and see what
performance you lose. I'm willing to bet its not a lot.

The only gain might be in a large DOM tree where there may be thousands of
objects. But then you're really better off using an array based class
instead (as I found out).

-- 
<Matt/>

    /||    ** Director and CTO **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // **     Personal Web Site: http://sergeant.org/     **
     \\//
     //\\
    //  \\


Reply via email to