From: Dobrica Pavlinusic Date: Fri, 25 Jun 2010 16:36:05 +0000 (+0200) Subject: document $out, $key, $value in perl code snippets X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=4749b3ea80a808a981d2bcd8b85278b4c9160bb0;p=MojoFacets.git document $out, $key, $value in perl code snippets --- diff --git a/README b/README index 0b3ea6b..14d7b0e 100644 --- a/README +++ b/README @@ -58,6 +58,10 @@ element from your dataset. If you want to create or update values, you will have to use $update hash to set new values. +If you want to report something from your dataset (also called reduce in map/reduce +terminology) you can use $out hash to store values which will be used to generate +new dataset using $key and $value for column names. + All values are repetable, but if you create just a scalar, magic(tm) inside MojoFacets will try to upgrade it to [ $scalar ] so you don't have to do it explicitly.