Help for this page

Select Code to Download


  1. or download this
    sub foo {
        state $x = 0;   # $x will retain it's state through
                        # successive invocations of foo()
        # ...
    }