Context of a Perl Subroutine
Published on 30 Nov 2007It is often useful to produce different return values depending on the context in which the subrouting or method was called, i.e. the type of return value that the caller expects:
It is often useful to produce different return values depending on the context in which the subrouting or method was called, i.e. the type of return value that the caller expects:
The following code chunk demonstrates how to add functions to the current namespace during runtime:
The most commonly used analysis of a series of measurements $x_i = x_1, \dots, x_n$
is calculating the mean value, the minimum, and the maximum as well as the mean deviation:
List environments like itemize
can be customized.
\begin{itemize}
\setlength{\itemsep}{0mm}
\item ITEM1
\item ITEM2
\end{itemize}
Length | Description |
---|---|
\topsep | Vertival space before and after list environment |
\itemsep | Vertical space between lines |
\parsep | Vertical space between paragraphs inside an item |
\partopsep | Vertical space before list environment if it starts a new paragraph |
NOTE: You will not be able to modify topsep
and partopsep
inside a list environment because the space was already added at that point.
NOTE: The default values of these lengths depend on the depth of the list environment.
See Dense Lists for an example how to modify topsep
and partopsep