Help for this page

Select Code to Download


  1. or download this
    compare_things(1, '')
    
    ''
    
  2. or download this
    compare_things('', '')
    
    1
    
  3. or download this
    compare_things(1, [])
    
    ''
    
  4. or download this
    compare_things(1, bless{})
    
    Died! Smart matching a non-overloaded object breaks encapsulation
    
  5. or download this
    compare_things(0, '')
    
    ''
    
  6. or download this
    Venus::Number->new(0)->eq('') # DMMT and DWIM
    
    1
    
  7. or download this
    Venus::Number->new(0)->tv('') # (tv) type and value equality
    
    0
    
  8. or download this
    Venus::Number->new(0)->eq(bless{}) # DMMT and DWIM
    
    0