#perl - Tue 27 Mar 2007 between 15:27 and 15:41



warpzeroi guess i could just eval
maukeer, what?
warpzeroi need to inherit a routine
maukeif you're inheriting it, it's not a subclass method
warpzerothat returns a coderef
to an overloaded method
maukewhat is an overloaded method?
warpzerosubclass method
also present in the current class
maukewtf
buuAGREED.
integralwhat's wrong with the proper $self->SUPER::method?
maukeclass 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?
warpzerowhy would it be?
maukebecause A has no business knowing about C?
warpzeroright
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
DavemanSupermethod?
warpzero?
Davemanis the cape exportable?
maukeok, that's just $self->can("sub")
hobbswarpzero: if it'll get you to stop hitting enter 7 times per sentence, the answer is 'can'
warpzerowhere do i find docs on this
maukeperldoc perlobj is my first guess
preactionor perldoc UNIVERSAL
hobbseval: UNIVERSAL->can('can') # stock up while the values last
buubothobbs: sub { "DUMMY" }
warpzeroyeah perldoc UNIVERSAL
i just tried -f and perldoc was like who?
maukeit's also in perlobj
warpzeroyeah but it took forever to find because can is a pretty not unique word
hobbswarpzero: that's okay, you could stand to read it all :)
warpzerothxu
hobbsiu3hf
eMish_Do i need to write '$fh=undef' after close($fh) ?

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 96 103 110 117 

IrcArchive