Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

creating perl modules

creating perl modules

creating perl modules

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

RE: creating perl modules

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.

RE: creating perl modules

Thanks for that. It works!

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


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close