Some people are looking to supply a common configuration to their programs
as global variables in the included files, and those people should look at
-CPAN configration modules such as <cpan_self_dist d="Config-IniFiles" />
+CPAN configration modules such as <cpan_self_dist d="Config-IniFiles" />
or <a href="http://search.cpan.org/search?query=json&mode=all">the
various JSON modules</a> for the ability to read configuration files
in a safer and better way.
Some beginners, when thinking they need to multitask their programs start
thinking they should use perl threads. However, as mentioned in
perlthrtut</pdoc>, perl threads are very much unlike
+<pdoc d="perlthrtut"></pdoc>, perl threads are very much unlike
the traditional thread modules, share nothing by default and are in fact
heavyweight processes (instead of the usual lightweight ones). See also
-Mattijsen’s writeup about perl's ithreads on perlmonks</a>.
+Mattijsen’s write-up about perl's ithreads on perlmonks</a>.
Related to string eval, is using two or more <tt>/e</tt> flags in the
<tt>s///</tt> substitution. While one /e flag is often useful (for example
-when subtituting counters like in <tt>s/#\./($i++)."."/ge</tt>) the second
-/e flags just evals the generated expression again. This can easily be done
+when substituting counters like in <tt>s/#\./($i++)."."/ge</tt>) the second
+/e flags just evaluates the generated expression again. This can easily be done
with using string eval inside the right-hand-side, assuming it is needed which
is normally not the case.
contains a reference and, as a result, in the case of the array, one will have
a single element array, and in case of the hash, one will have an error
with a hash that was initialised only with a single key (that was converted
-to a non-sensical string).
+to a nonsensical string).
<item id="no_upwards_for_dirs" h="Getting rid of special entries in directory contents">
-Calling <pdoc_f f="readdir">readdir()</pdoc_f> repetit
evely, or calling it
+Calling <pdoc_f f="readdir">readdir()</pdoc_f> repetitvely, or calling it
in list context will normally return the two special entries of <tt>.</tt>
(the same directory) and <tt>..</tt> (the parent directory) which should not
be checked, and should normally be ignored. One can often find that people
-<item id="assigning_list_to_scalar" h="Assig
ining a List to a Scalar Variable">
+<item id="assigning_list_to_scalar" h="Assigning a List to a Scalar Variable">
Normally, assigning from a function or an expression that returns a list
-As a result, the two code exer
cpts should be written as such instead:
+As a result, the two code exerpts should be written as such instead:
If you do find that your program runs too slowly, refer to our
<a href="$(ROOT)/topics/optimising-and-profiling/">page about Optimising and
-Profiling Perl code</a>, but don't opimi
+Profiling Perl code</a>, but don't opimie prematurely.