Perinci::Script::Any - Allow a script to be a command-line script or PSGI (CGI, FCGI)
This document describes version 0.001 of Perinci::Script::Any (from Perl distribution Perinci-Script-Any), released on 2018-11-22.
In your script:
#!/usr/bin/env perl use Perinci::Script::Any; Perinci::Script::Any->new(url => '/Package/func')->run;
This module lets you have a script that can be a command-line script as well as a PSGI (CGI, FCGI) script.
Please visit the project's homepage at https://metacpan.org/release/Perinci-Script-Any.
Source repository is at https://github.com/perlancar/perl-Perinci-Script-Any.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Script-Any
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Perinci::CmdLine::Any, Perinci::WebScript::JSON
perlancar <perlancar@cpan.org>
This software is copyright (c) 2018 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.
To install Perinci::Script::Any, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perinci::Script::Any
CPAN shell
perl -MCPAN -e shell install Perinci::Script::Any
For more information on module installation, please visit the detailed CPAN module installation guide.