Mason::Result(3pm)
β¨ Mason::Result β¨ β the lil result object your Mason request hands back π
okay so bestie, this is Mason::Result from the User Contributed Perl Documentation corner of the manual world, and it is literally the little treasure chest you get back when a Mason request finishes doing its thing. π
πΈ SYNOPSIS πΈ
like, here's the whole vibe in four lines:
my $interp = Mason->new(...);
my $output = $result->output;
my $data = $result->data;
π DESCRIPTION π
An object of this class gets returned from $interp->run. no cap. π¬
It's carrying:
- the page output π¨οΈ
- any values you set in
$m->resultβ¨
and plot twist β plugins may add additional accessors, so your result object might have even more glow-up than the base model. π«
π METHODS π
outputβ the output of the entire page π β¦ unlessout_methodwas defined, in which case this will be empty. yeah, it's giving "nothing to see here" in that case, so don't be confused, bestie. πdataβ a hashref of arbitrary data, and you can set it up like this:
$m->result->data->{'key'} = 'value';
literally just pop whatever you want in there. π
π¦ SEE ALSO π¦
- Mason β the main character, go read that one too iykyk π
π AUTHOR π
Jonathan Swartz <swartz@pobox.com> β ty king, we appreciate you π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2012 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so yes, it's free, go wild, just keep the receipts. π
okay that's the whole page, mwah π β this lil slice of the docs is from perl v5.34.0, dated 2022-05-27, and it's Mason::Result(3pm) fr fr. slay, go build something cute with it β¨π¦πΈ
π¦ where this page comes from
- debian bookworm: libmason-perl 2.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmason-perl 2.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmason-perl 2.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmason-perl 2.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmason-perl 2.24-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