in reply to Re: Functional Programming & method rewriting
in thread Functional Programming & method rewriting
Hmm, I did go the long way to do it, didn't I? :)
Thanks for the idea.
Thanks for the idea.
sub foo { print "hi mom\n"; my $ptr = \&foo; *foo=sub { print "that was unneccessary:"; $ptr->(); }; } foo(); foo();
Hmm, more Perl voodoo. I like it.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Functional Programming & method rewriting
by Sandy (Curate) on Oct 29, 2004 at 21:55 UTC |
In Section
Meditations