Check the functional-perl website for properly formatted versions of these documents.
Examples
Some examples showing the possibilities using functional-perl.
-
gen-csvandcsv_to_xml(and the shorter variantcsv_to_xml_short) show how to stream number series into and from CSV files and into XML. -
diff_to_htmlhows how to generate (X)HTML. -
skipshows how to implement a sliding window (look-ahead) as a pure function (that can easily be tested) and then uses it for I/O -
pdf-to-htmlis a practical, small and rather clean example reading directories and generating HTML. It also shows how to wrap non-functional Perl builtins (regex matching) in pure functions.
These are really just test suites, but perhaps still instructive:
-
dbishows/tests usage ofFP::DBI -
predicatesshows/testsFP::Predicates
Copy template to create your own script.