CGI - A module for programming CGI
#!/usr/bin/pugs use v6; require CGI-0.0.1; print header; if (param()) { for param() -> $key { say $key ~ " => " ~ param($key) ~ "<BR>"; } } else { say "<FORM><INPUT TYPE='text' NAME='test'><INPUT TYPE='submit'></FORM>"; } # you can also test it on the command line too % pugs -I lib/ examples/test.p6 "greetings=hello world"
CGI for Pugs!
The following informational functions are fetched on-demand
My inclination is to wait until objects are done for this, but maybe I will figure out a good way to do this without. Either way it is still TODO.
stevan little, <stevan@iinteractive.com>
Autrijus Tang, <autrijus@autrijus.com>
Curtis "Ovid" Poe
Andras Barthazi, <andras@barthazi.hu>
"Aankhen"
Copyright (c) 2005. Stevan Little. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Perl6::Pugs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl6::Pugs
CPAN shell
perl -MCPAN -e shell install Perl6::Pugs
For more information on module installation, please visit the detailed CPAN module installation guide.