Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: "main::Objects" used only once: possible typo

by mikeraz (Friar)
on Apr 28, 2009 at 17:14 UTC ( [id://760674]=note: print w/replies, xml ) Need Help??


in reply to "main::Objects" used only once: possible typo

It's good to start small and build, checking for problems as you go. In this case the smallness is the issue.

There's nothing "wrong" here. The full message, at least on my system with your posted code, is
Name "main::Objects" used only once: possible typo at ./handler.pl line 9.
Note that it warns "possible typo". There's nothing wrong there. Think about the future. You add to this start. It gets big. On some run Perl gives you a warning like
Name "main::Obects" used only once: possible typo at ./handler.pl line 99.
Without the warning you might spend a bunch of time looking for the problem in your code - because it is no longer functioning as expected. All because when you meant to type Objects you typed Obects. In that (all too familiar to me) scenario you become very thankful that Perl warnings will tell you about the error.


Be Appropriate && Follow Your Curiosity
  • Comment on Re: "main::Objects" used only once: possible typo

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://760674]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-24 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found