Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: simple anonymous subroutine and variable interpolation timing question

by Anonymous Monk
on Jun 24, 2011 at 10:50 UTC ( #911227=note: print w/replies, xml ) Need Help??


in reply to simple anonymous subroutine and variable interpolation timing question

state
$ perl -e " use feature 'state'; sub Foo { state $block = $_[0]; $bloc +k } warn Foo(6); warn Foo(29000); " 6 at -e line 1. 6 at -e line 1.
  • Comment on Re: simple anonymous subroutine and variable interpolation timing question
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2023-03-30 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (73 votes). Check out past polls.

    Notices?