Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: RFC: Tie::File::AnyData Lightweight Databases in Perlby citromatik (Curate) |
on Dec 11, 2007 at 10:19 UTC ( [id://656367]=note: print w/replies, xml ) | Need Help?? |
Well, in fact, a more correct name would be multilineCSV. This module takes several consecutive lines of fields (CSV, tabular, or whatever) that have the same value in a given field (the "key" field") and joins them in one logical record. Well, I think that it has to do with CSV at least because internally it uses Parse::CSV to parse the lines. Let's consider the following example:
Using this code:
In the first case, all consecutive lines that have the same value in the first field ("Mike" in the key field), are considered a record. In the second case, all consecutive lines that have the same value in the second field ("5") are considered a record Hmmm, totally agree, I will try to change that name Thanks for your comments! citromatik
In Section
Meditations
|
|