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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with a required module

Status
Not open for further replies.

123321a

Programmer
Aug 27, 2003
8
MX
Hi,

I developed a large program and it uses packages, the packages are called by the command required everytime they are needed, when the package is required the subroutines within run automatically,the problem is when I call the same package twice, this second time the package doesn't run the subroutines and the program keep going through the remaining of the program.

Thanks in advanced.....
 
my understanding is that this behaviour is correct - initialisation code runs only once -- maybe you need to look at Perl objects if you need something to run each time it is used

Mike

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

It's like this; even samurai have teddy bears, and even teddy bears get drunk.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top