Help for this page

Select Code to Download


  1. or download this
    sub counter {
      state $count = 0;
      $count++;
    }
    
  2. or download this
    {
      my $count = 0;
    ...
        $count++;
      }
    }
    
  3. or download this
    {
      my $count = 0;
    ...
        $count += 2;
      }
    }