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

creating perl modules

Status
Not open for further replies.

teroy

Programmer
Oct 17, 2000
67
AU
Hi there,
I was wondering if anyone could give me a pointer in the right direction or a sample procedure as on to how to make my own modules. I have read perldof -q "how to create modules" and have tried a sample script but am missing something or other.

Any help will be appreciated

Thanks in Advance
[sig][/sig]
 
We have created our own functions here for many common things. I cannot tell you if they are assembled the same as supplied modules but ours follow simple subroutine format. Some use global variables, some use private variables but the purpose is to provide a function and/or service that can be used by many programs. Just be sure that the module ends with a ".pm" and be sure to reference it with a "use blahblah" in your perl program. Other than that, give it a try.
 
Thanks for that. It works!

I think what i was doing wrong was putting the .pm file in a wrong location

Cheers [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top