CGI-Snapp-Demo-Three
view release on metacpan or search on metacpan
httpd/cgi-bin/cgi.snapp.three.psgi view on Meta::CPAN
#!/usr/bin/env perl
#
# Run with:
# starman -l 127.0.0.1:5173 --workers 1 httpd/cgi-bin/cgi.snapp.three.psgi &
# or, for more debug output:
# plackup -l 127.0.0.1:5173 httpd/cgi-bin/cgi.snapp.three.psgi &
use strict;
use warnings;
use CGI;
use CGI::Emulate::PSGI;
use CGI::Snapp::Demo::Three;
lib/CGI/Snapp/Demo/Three.pm view on Meta::CPAN
Edit httpd/cgi-bin/cgi.snapp.three.psgi and change my value for the web server's doc root from /dev/shm/html to match your set up.
/dev/shm/ is a directory provided by L<Debian|http://www.debian.org/> which is actually a RAM disk, and within that my doc root is the sub-directory /dev/shm/html/.
Then, install L<Plack> and L<Starman> and then do one or both of:
=over 4
=item o Use L<Starman>
Start starman with: starman -l 127.0.0.1:5173 --workers 1 httpd/cgi-bin/cgi.snapp.three.psgi &
=item o Use L<Plack>
Start plackup with: plackup -l 127.0.0.1:5173 httpd/cgi-bin/cgi.snapp.three.psgi &
=back
Then, with either starman or plackup, direct your browser to hit 127.0.0.1:5173/.
These commands are copied from comments within httpd/cgi-bin/cgi.snapp.three.psgi. The value 5173 is of course just a suggestion. All demos in this series use port 5171 and up.
=back
=head1 Description
Shows how to use the forward() method to interrupt processing of a run mode.
The output reports which methods were and were not entered per run mode.
( run in 0.834 second using v1.01-cache-2.11-cpan-e93a5daba3e )