Help for this page

Select Code to Download


  1. or download this
    sub foo {
        (my $foo, state $bar) = (f(), g());
    ...
    
    foo;
    foo;  # Should g() be called?
    
  2. or download this
    state %record;
    %record = ( ... );
    
  3. or download this
    my %record = ( ... );
    
  4. or download this
    state %record;
    %record = ( ... ) unless keys %record;