Plack::ResponseHelper::Attachment
use Plack::ResponseHelper pdf => [Attachment => {content_type => 'application/pdf'}]; respond pdf => {filename => 'report.pdf', data => $report};
Plack::ResponseHelper
To install Plack::ResponseHelper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::ResponseHelper
CPAN shell
perl -MCPAN -e shell install Plack::ResponseHelper
For more information on module installation, please visit the detailed CPAN module installation guide.