Okay, to question (a):
- module: A file (*.pm) that contains one or more packages
- package: The Perl equivalent of a C namespace; encapsulates subroutines or objects
- script: A program, so to speak. Just that it is not executed, but interpreted by the Perl interpreter
- subroutine: You could call it a procedure or a function. It is declared with sub blabla { ... and does the stuff you tell it to do
- function: Does not really exist in Perl, but would be (if you think Pascal), a sub that returns a value. Just understand it as sub
To (b): I think there is a way, but I could not get it working :/. Hope the others have ideas...
Hope this helped anyways.
CombatSquirrel.
Entropy is the tendency of everything going to hell.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|