<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    Var::State - state [variable]; in perl 5.8 - sort-of...

VERSION
    0.02

SYNOPSIS
     use Var::State;

     sub foo {
         my $i = 0;
         state $i;
         return $i++;
     }

     print foo() for(0..10); # should print 0 to 10

FUNCTIONS
  state(var)
    IMPORTANT: READ BUGS AND LIMITATIONS!

    Will make "var" (@var, $var, %var) static.

  import
    Will import "state()" into the current namespace.

BUGS AND LIMITATIONS
    Need to add state as a keyword, so you don't have to declare the
    variable with my() first! This exact problem breakes compatibility with
    5.10's state, and therefor t/11-state-5.10.t is not included in the
    test-suite - yet.

    Please report any bugs or feature requests to "bug-var-state at
    rt.cpan.org", or through the web interface at
    &lt;http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Var-State&gt;. I will be
    notified, and then you'll automatically be notified of progress on your
    bug as I make changes.

AUTHOR
    Jan Henning Thorsen, "&lt;pm at flodhest.net&gt;"

COPYRIGHT &amp; LICENSE
    This program is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

    Copyright (c) 2007 Jan Henning Thorsen

    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the
    Free Software Foundation; either version 2 of the License, or (at your
    option) any later version.

    This program is distributed in the hope that it will be useful, but
    WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
    Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    675 Mass Ave, Cambridge, MA 02139, USA.

</pre></body></html>