Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 lurking in the Monastery: (3)
As of 2014-10-02 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (43 votes), past polls