Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Anonymous coderefs

by dragonchild (Archbishop)
on Sep 02, 2003 at 15:34 UTC ( [id://288339]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (1)
As of 2024-04-25 04:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found