| warpzero | i guess i could just eval |
| mauke | er, what? |
| warpzero | i need to inherit a routine |
| mauke | if you're inheriting it, it's not a subclass method |
| warpzero | that returns a coderef to an overloaded method |
| mauke | what is an overloaded method? |
| warpzero | subclass method also present in the current class |
| mauke | wtf |
| buu | AGREED. |
| integral | what's wrong with the proper $self->SUPER::method? |
| mauke | class hierarchy: A -> B -> C. you are B. you're calling a method from A, which returns a reference to a method in C. how is that not broken? |
| warpzero | why would it be? |
| mauke | because A has no business knowing about C? |
| warpzero | right i know but the code doesn't change if i made a new method in C it would have the exact same code as the method in A what i need is a way to get a subref to $self->sub |
| Daveman | Supermethod? |
| warpzero | ? |
| Daveman | is the cape exportable? |
| mauke | ok, that's just $self->can("sub") |
| hobbs | warpzero: if it'll get you to stop hitting enter 7 times per sentence, the answer is 'can' |
| warpzero | where do i find docs on this |
| mauke | perldoc perlobj is my first guess |
| preaction | or perldoc UNIVERSAL |
| hobbs | eval: UNIVERSAL->can('can') # stock up while the values last |
| buubot | hobbs: sub { "DUMMY" } |
| warpzero | yeah perldoc UNIVERSAL i just tried -f and perldoc was like who? |
| mauke | it's also in perlobj |
| warpzero | yeah but it took forever to find because can is a pretty not unique word |
| hobbs | warpzero: that's okay, you could stand to read it all :) |
| warpzero | thxu |
| hobbs | iu3hf |
| eMish_ | Do i need to write '$fh=undef' after close($fh) ? |