Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Variable declarationby fisher (Priest) |
on Oct 14, 2011 at 06:10 UTC ( [id://931435]=note: print w/replies, xml ) | Need Help?? |
You 'use strict' and do not declare the scope of your variable; just add before actual usage a declaration like this:
And variable $new::variable already declared in package 'new'.
In Section
Seekers of Perl Wisdom
|
|