in reply to Re: increasing value every time sub routine called
in thread increasing value every time sub routine called

I worked it out :)

increase(); increase(); increase(); sub increase { $n += 1; # Global variable $n print "$n\n"; }