Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^8: RFC: Simulating Ruby's "yield" and "blocks" in Perl (Python)

by LanX (Saint)
on Apr 26, 2013 at 17:54 UTC ( [id://1030873]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     test(def _(x): print("You are in block %s" % x))
  2. or download this
    >>> def _(x):
    ...     print("You are in block %s" % x)
    ...
    back in test
    You are in block 2
    test lambda a: print("You are in block %s" % a)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-26 06:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found