[Petal] false:EXPRESSION vs not:EXPRESSION
    Jonathan 
    jvanasco at 2xlp.com
       
    Sat Oct 29 00:24:16 BST 2005
    
    
  
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.
    
    
More information about the Petal
mailing list