Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: "main::Objects" used only once: possible typoby hilitai (Monk) |
on Apr 28, 2009 at 14:36 UTC ( [id://760626]=note: print w/replies, xml ) | Need Help?? |
It's not an error, it's a warning. You're getting it because you're using 'use warnings;'. The compiler noticed that there is only one use of $main::Objects in your script -- you create it, but never use it for anything -- and emitted the warning because normally when an object is created, it is eventually used in some way. If you use $main::Objects, the warning will go away.
In Section
Seekers of Perl Wisdom
|
|