Perinc...ltTable(3pm)
π NAME π
Perinci::Object::EnvResultTable β bestie, it represents enveloped result (table) β¨
πΈ VERSION πΈ
This doc is describing version 0.311 of Perinci::Object::EnvResultTable (she comes from the Perl distribution Perinci-Object), and she was released on 2020-01-02. π
β¨ SYNOPSIS β¨
okay so here's the vibe, look:
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 result
return $envres->as_struct;
}
π¦ DESCRIPTION π¦
So real talk: this class is a subclass of Perinci::Object::EnvResult, and what it does is hand you convenience methods for when you wanna return table data. It's giving "I got you, table edition." π
π METHODS π
π new($res) => OBJECT
Spawns a brand new object out of the $res enveloped result array. New object, who dis. π«Ά
π $envres->add_field($name, %attrs)
Adds a table field. What actually happens under the hood: it creates/pushes an entry onto the "table.fields" result metadata array. Iconic behaviour honestly. β¨
π HOMEPAGE π
Please visit the project's homepage at <https://metacpan.org/release/Perinci-Object>.
π SOURCE π
The source repository lives at <https://github.com/perlancar/perl-Perinci-Object>.
π BUGS π
Please report any bugs or feature requests on the bugtracker website <https://github.com/perlancar/perl-Perinci-Object/issues>
When you're submitting a bug or a request, please include a test-file or a patch to an existing test-file that shows off the bug or the desired feature. (receipts!! we love receipts π§Ύπ)
π₯ SEE ALSO π₯
Perinci::ObjectPerinci::Object::EnvResult
πΈ AUTHOR πΈ
perlancar <perlancar@cpan.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2021, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, bestie π«Ά β this was perl v5.36.0, dated 2022-10-13, from the man page Perinc...ltTable(3pm). no cap. πβ¨
π¦ where this page comes from
- ubuntu noble: libperinci-object-perl 0.311-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libperinci-object-perl 0.311-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libperinci-object-perl 0.311-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms