|
|
| No such thing as a small change | |
| PerlMonks |
Re: Variable declarationby fisher (Curate) |
| on Oct 14, 2011 at 06:10 UTC ( #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
|
|
||||||||||||||||||||