in reply to Anonymous coderefs

Wouldn't
my $x; $x = sub { # Do stuff. $x->(); # Do more stuff };
do the trick? That's something BrowserUk offers as a way to write recursive subs ...

Update: As BrowserUk can't remember offering this advice, I confess that it might have been tye, or demerphq, or any number of the smart people on this board. I think it was that I read too many response from the British One that I had him on the brain. :-)

------
We are the carpenters and bricklayers of the Information Age.

The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Anonymous coderefs
by BrowserUk (Patriarch) on Sep 02, 2003 at 15:57 UTC

    I do? When? Where? What else have I forgotten? Have I got a hole in my brain? Brain? What's a brain? What? Huh?


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
    If I understand your problem, I can solve it! Of course, the same can be said for you.