in reply to Re^2: ptkdb: 'my' variable in sub retains value between calls
in thread ptkdb: 'my' variable in sub retains value between calls
If, in addition to using warnings with its very helpful message referred to in other replies, you had been using strict, Perl would never have let you make the mistake in the first place if you were using names other than $a and $b!