Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How will you use state declared variables in Perl6?

by mirod (Canon)
on Jul 08, 2005 at 20:44 UTC ( #473563=note: print w/ replies, xml ) Need Help??


in reply to How will you use state declared variables in Perl6?

As you described: every time I have something similar to this in Perl 5, and that's quite often:

{ my $var; BEGIN { $var= 'init_val'; } sub foo { ... ... $var ... ... } }


Comment on Re: How will you use state declared variables in Perl6?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-08-21 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (144 votes), past polls