Perinci::Object::EnvResultTable3pm
Represent enveloped result (table)
Usage
use Perinci::Object::EnvResultTable;sub myfunc {...my $envres = Perinci::Object::EnvResultTable->new;# add fields$envres->add_field('foo');$envres->add_field('foo');# finally, return the resultreturn $envres->as_struct;}
Version
This document describes version 0.311 of Perinci::Object::EnvResultTable (from Perl distribution Perinci-Object), released on 2020-01-02.
Overview
This class is a subclass of Perinci::Object::EnvResult and provides convenience methods when you want to return table data.
Methods
new($res) => OBJECT
Create a new object from $res enveloped result array.
$envres->add_field($name, %attrs)
Add a table field. This will create/push an entry to the "table.fields" result metadata array.
Homepage
Please visit the project's homepage at <https://metacpan.org/release/Perinci-Object>.
Source
Source repository is at <https://github.com/perlancar/perl-Perinci-Object>.
Copyright and license
This software is copyright (c) 2021, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by [email protected].
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Releases
5 releases since Debian 9 (Stretch); the text changed 3 times.