Perinc...ltTable(3pm)

πŸ“¦
version 0.311 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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::Object
  • Perinci::Object::EnvResult

🌸 AUTHOR 🌸

perlancar <perlancar@cpan.org>


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