This simple module serves one purpose - to provide a simple means to read (or
slurp) an entire file into memory for processing. This module allows the
replacement of the prototypical foreach- or while- loops used for opening
and reading of files with single-line constructs.
Of note with this module is that the magic of the @ARGV variable and the
input record separator, $/, are used to facilitate the reading of entire
files into either an array or scalar using minimal code.
Smart comments provide an easy way to insert debugging and tracking code into
a program. They can report the value of a variable, track the progress of a
loop, and verify that particular assertions are true.
Best of all, when you're finished debugging, you don't have to remove them.
Simply commenting out the use Smart::Comments line turns them back into
regular comments. Leaving smart comments in your code is smart because if you
needed them once, you'll almost certainly need them again later.
libphutil is a collection of utility classes and functions for PHP
A C/C++ library for controlling Pololu AVR hardware, such as the 3pi robot
and Orangutan family of robot controllers.
Parsing and evaluation tools that make it easy to recreate the
command line behaviour of R.
Select the top n elements from a list using several common orderings and
custom key extraction procedures.
Sort::Key provides a set of functions to sort object arrays by some
(calculated) key value.
This module has two main goals: to make it easy to create correct sort
functions, and to make it simple to select the optimum sorting algorithm
for the number of items to be sorted. Sort::Maker generates complete
sort subroutines in one of four styles, plain, orcish manouver,
Schwartzian Transform and the Guttman-Rosler Transform. You can also get
the source for a sort sub you create via the sorter_source call.
Sort::Tree implements a mechanism for sorting a list of objects into a
tree structure and flattening it back into a list. Among other things,
this is useful for displaying database queries in hierarchical views,
such as nested categories, parent-child relationships, threaded
discussions, and so forth.
Trees have a lot to do with Graph theory, so if this module doesn't suit
your fancy, have a look at the Graph:: Perl modules for an academically
oriented implementation that employs vertex, edge, and node operations.
For more information on how to use the perl module, see the
pod documentation via the command
perldoc Sort::Tree
or, after installation, view the man pages with
man Sort::Tree
Sort::Versions allows easy sorting of mixed non-numeric
and numeric strings, like the "version numbers" that many
shared library systems and revision control packages use.
This is quite useful if you are trying to deal with shared
libraries. It can also be applied to applications that
intersperse variable-width numeric fields within text.
Other applications can undoubtedly be found.
For an explanation of the algorithm, it's simplest to look
at these examples:
1.1 < 1.2
1.1a < 1.2
1.1 < 1.1.1
1.1 < 1.1a
1.1.a < 1.1a
1 < a
a < b
1 < 2
1 < 0002
1.5 < 1.06