DOKK / manpages / debian 10 / libmason-perl / Mason::Result.3pm.en
Mason::Result(3pm) User Contributed Perl Documentation Mason::Result(3pm)

Mason::Result - Result returned from Mason request

    my $interp = Mason->new(...);
    my $output = $result->output;
    my $data   = $result->data;

An object of this class is returned from "$interp->run". It contains the page output and any values set in "$m->result". Plugins may add additional accessors.

The output of the entire page, unless out_method was defined in which case this will be empty.
A hashref of arbitrary data that can be set via

    $m->result->data->{'key'} = 'value';
    

Mason

Jonathan Swartz <swartz@pobox.com>

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.

2015-05-16 perl v5.20.2