Apart from the dubious educational value of one-liners,
I don't like this collection at all, for two reasons:
- It encourages
cargo cult programming
- A great deal of these exampels could be made much easier
using a database instead of plain text files. Even a minimalist
database such as SQLite would greatly simplify tasks such as "Calculate
sum of the nth column of tabular data" or "Calculate sum of a set of
columns for each row". I mean, if you need to sum up some values,
you need to read all the text anyway, so while you are reading it,
it makes sense to export the data into a database, and then get
the stats in no time.
Since they are ready-to-use recipes, it would have been more
useful to save each case into a well written Perl script, with
properly named variables, and using a database when needed.
The way it is now, it will just spread the rumor of Perl being
a write-only language.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||