Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^7: Depends...

by demerphq (Chancellor)
on Dec 02, 2004 at 18:24 UTC ( #411900=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    *isa=*UNIVERSAL::isa;
    
    ...
      elsif (isa($foo,'Type2')) { return $foo->method2 }
      else { return $foo->method3 }
    }
    
  2. or download this
    sub Type1::generic_method { $_[0]->method1 }
    sub Type2::generic_method { $_[0]->method2 }
    ...
      ...
      return $foo->generic_method
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://411900]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2021-08-04 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (41 votes). Check out past polls.

    Notices?