http://www.perlmonks.org?node_id=931435


in reply to Variable declaration

You 'use strict' and do not declare the scope of your variable; just add before actual usage a declaration like this:
my $another_variable;
And variable $new::variable already declared in package 'new'.