Help for this page

Select Code to Download


  1. or download this
      
        sub Value_eq {
            my ($target_value) = @_;
    ...
        sub Negative {
            sub { $_[0] < 0 ? 0 : undef }
        }
    
  2. or download this
        package Base;
        
    ...
        multimethod new => (Value_eq('Der'))      => sub {...}  
        multimethod new => (Value_eq('Der'), '$') => sub {...}  
        # etc.
    
  3. or download this
      
        sub This::Class {
            my $target_value = caller;
            sub { $_[0] eq $target_value ? 0 : undef }
        }
    
  4. or download this
        package Base;
        
    ...
        multimethod new => (This::Class)      => sub {...}  
        multimethod new => (This::Class, '$') => sub {...}  
        # etc.