Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by revdiablo (Prior)
on Jul 08, 2005 at 22:28 UTC ( #473590=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
      my $foo;
    ...
        $foo += @_;
      }
    }
    
  2. or download this
    sub foo {
      state $foo;
      $foo += @_;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://473590]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2017-07-21 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (319 votes). Check out past polls.