Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2014-12-19 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (74 votes), past polls