Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: an obfuscated closure

by Abigail (Deacon)
on Jun 20, 2001 at 04:45 UTC ( [id://89881]=note: print w/replies, xml ) Need Help??


in reply to an obfuscated closure

You don't see closures enough? Well, here's a closure for you. A closure with one variable from an outside scope: itself. (You need to allow code to be at least 77 columns wide to benefit optimally from the formatting)
$_ = "\nrekcaH lreP rehtona tsuJ"; my $chop; $chop = sub {print chop; +$chop}; $chop -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> ( +) -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> ( +) -> ()

-- Abigail

Replies are listed 'Best First'.
Re: an obfuscated closure
by Maestro_007 (Hermit) on Jun 20, 2001 at 20:00 UTC
    A response from Abigail! I've been following your japh's for months! This was my first attempt at a japh, based on the very one you've quoted, along with a few others. Sure, I have seen closures in japh's, just not as often as other things. I guess I just really like closures...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2024-04-18 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found