Adding
use strict;
after
package it_item;
will make Perl point out your error.
You (re)use a global variable $self in various places in that package.
This is actually a point where the new signatures feature (only available in 5.20+) could be useful as it makes it easier to avoid accidentially using global variables. On the other hand, you can still forget to list $self in the formal parameters of your subroutine...
In reply to Re: why am I getting odd behavior on DESTROY
by Corion
in thread why am I getting odd behavior on DESTROY
by einhverfr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |