Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using global objects in perl 1

Status
Not open for further replies.

ruthie

Programmer
Jul 19, 2001
2
IL
Hi all.

I am writing an application in perl and I would like to have it print things out into global 'Report' objects(warning, error, result reports etc).

In general, I like to think of my reports as tools the applications uses constantly, but are not a part of it.

Well, creating instances of these reports from 'main' doesn't feel right.(should it?)

I thought about creating them in their separate package, then export'ing and use'ing them, since I know exactly what reports I expect to have. Does this sound right?

thanks,
ruthie
 
either create a class dedicated to reports (responsible of creating them, building them, updating them,, transmitting them, deleting them, etc)
or embed a file with global variable (use or require) <- this is NOT oo !!

this question would actually fit better in the perl forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top