prints 123use feature "state"; sub a { state $i++; print $i; } a(); a(); a();
In reply to Re: increasing value every time sub routine called
by Fox
in thread increasing value every time sub routine called
by bigmoose
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |