Squatting::On::CGI - if all else fails, you can still deploy on CGI
Create an app.cgi to drive the Squatting app in a CGI environment.
use App 'On::CGI'; my $q = CGI->new; App->init; App->relocate('/cgi-bin/app.cgi'); App->cgi($q);
The purpose of this module is to allow Squatting apps to be used in a CGI environment. This is done by adding a cgi method to the Squatting app that knows how to "translate" between CGI and Squatting. To use this module, pass the string 'On::CGI' to the use statement that loads your Squatting app.
cgi
'On::CGI'
use
Give the cgi method a CGI object, and it will send the apps output to STDOUT.
CGI
To install Squatting, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Squatting
CPAN shell
perl -MCPAN -e shell install Squatting
For more information on module installation, please visit the detailed CPAN module installation guide.