Data::Transpose::Group - Group class for Data::Transpose
$group = $tp->group('fullname', $tp->field('firstname'), $tp->field('lastname'));
$group = Data::Transpose::Group->new(name => 'mygroup', objects => [$field_one, $field_two]);
Set name of the group:
$group->name('fullname');
Get name of the group:
$group->name;
Returns field objects for this group:
$group->fields;
Set string for joining field values:
$group->join(',');
Get string for joining field values:
$group->join;
The default string is a single blank character.
Returns value for output:
$output = $group->value;
Set target name for target operation:
$group->target('name');
Get target name:
$group->target;
Copyright 2012-2013 Stefan Hornburg (Racke) <racke@linuxia.de>.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Data::Transpose, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Transpose
CPAN shell
perl -MCPAN -e shell install Data::Transpose
For more information on module installation, please visit the detailed CPAN module installation guide.