Solved

what is a perl module

Posted on 2013-12-08
5
200 Views
Last Modified: 2013-12-09
Is a Perl module a set of similar subroutines?  For example: is there something like a "math" module?  Then you have to read descriptions of what the module contains?
0
Comment
Question by:dwcronin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 39704185
CPAN has Math::Algebra, Math::Approx, Math::BaseArith, Math::BaseCalc, Math::Bezier,  Math::BigFloat, Math::BigInt, Math::BigRat, Math::BooleanEval, Math::Calculus::Differentiate,  Math::Calculus::TaylorSeries, Math::Combinatorics,  Math::Complex, ..., etc.
There is no standard module called named  just "math", but you can write one yourself, and include whatever you want in it.
0
 

Author Comment

by:dwcronin
ID: 39704211
ozo:  I figured "math" was too general of a division, but I've read that function/procedure names  are too specific.  Where does the line get drawn?
0
 
LVL 48

Accepted Solution

by:
Tintin earned 250 total points
ID: 39705568
A Perl module is simply one or more files that conform to the construct for a Perl module that perform a particular task and call be called by Perl scripts.

There's nothing to stop someone creating a module called:

Life::Universe::Everything

that does absolutely everything, but in general, most Perl modules perform a specific set of tasks.
0
 
LVL 84

Assisted Solution

by:ozo
ozo earned 250 total points
ID: 39705801
What features should a program have?
It depends what the creator of the program wants to accomplish,
the usefulness of a feature compared to the complication of having to select the feature,
the programming effort to add a feature compared to adapting a another program to perform the desired function,
users expectations due to experience with similar programs,
the kinds of task the use is likely to want to perform together,
etc.
0
 

Author Closing Comment

by:dwcronin
ID: 39706251
I think I asked an open ended question.  So "more than a little and less than a lot".
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question