Subject: | Module generates unnecessary warning |
The thumbnail method on line 89 contains a warn clause that does a $self->{debug} == 1.
The constructor does not define 'debug', and so this generates a warning from Perl on every invocation, especially for us folks who run with -w all the time.
Changing the constructor to:
sub new {
my $class = shift;
my $self = bless { debug => 0}, $class;
}
fixes the problem with no loss of generality.