Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by mirod (Canon)
on Jul 08, 2005 at 20:44 UTC ( [id://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 ... ... } }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2024-04-26 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found