use strict; use warnings; { my $persistent = 0; sub increment { print ++$persistent; }} increment(); increment(); increment();
In reply to Re: increasing value every time sub routine called
by TJPride
in thread increasing value every time sub routine called
by bigmoose
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |