Mason::Result(3pm)

πŸ“¦
version 2.24 Β· 2 versions
  • 2.24 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 2.24 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 🌈 … unless out_method was 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 🫢


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