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 reply to Re: "main::Objects" used only once: possible typo
by hilitai
in thread "main::Objects" used only once: possible typo
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |