Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Preventing used modules from leaking to main script

by jdtoronto (Prior)
on Sep 20, 2006 at 17:55 UTC ( [id://573963]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Preventing used modules from leaking to main script
in thread Preventing used modules from leaking to main script

And indeed I would make that very point. You should check, because when an error like that occurs that is how you know you have left something out! You can catch some things, you can save in having to use Data::Dumper; everywhere by creating a debug method in your base class which prints the Dumper method, inherit that in every module and then you never need to use Data::Dumper; again! It also means you can use a global to turn the debug printing on and off. That's what I do, I have a $DEBUG variable at the top of the code, it will turn the dumping on or off.

But sometimes you just gotta face up to the fact that you are human and deal with it! I do, every day!!

jdtornto

Log In?
Username:
Password:

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

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

    No recent polls found