Re: false:EXPRESSION vs not:EXPRESSION

Jonathan <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
On Oct 28, 2005, at 7:09 PM, Bruno Postle wrote:
>
> It would be trivial to add it to Petal::Hash, I couldn't say why it
> wasn't implemented like this in the first place.

I've just been overriding it ( i didn't want to touch the source )  
with a simple one-liner after my include:
         $Petal::Hash::MODIFIERS->{'not:'} = sub { return ( $_[0]- 
 >fetch($_[1]) ? 0 : 1 ); };

 From reading the docs, it seems that the source somehow supports  
aliasing of functions, but I didn't want to touch that trying to  
patch things.  I'm really not good with that sort of stuff.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.