Solved

what is a perl module

Posted on 2013-12-08
5
197 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now