Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Class::Multimethods namespace collusion

by TheDamian (Priest)
on Feb 17, 2004 at 23:22 UTC ( #329797=note: print w/replies, xml ) Need Help??

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.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://329797]
help
Chatterbox?
[stevieb]: ++ atcroft
[atcroft]: .oO(Then there is the effect if a site changes their timezone, such as when the International Date Line was moved by the purchase of Alaska by the US from Russia in 1867, or several places (I cannot recall off-hand) that moved from one side of the Date

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2017-04-29 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.