Hon Dah, A-par-che!
- First, make a hondah.par from an one-liner:
# use the "web.conf" from the previous slide % pp -p -o hondah.par -e 'print "Hon Dah!\n"' --add web.conf % chmod a+x hondah.par
- Add this to httpd.conf, then restart apache:
PerlAddVar PARInclude /home/autrijus/hondah.par PerlModule Apache::PAR
- Test it out:
% GET http://localhost/myapp/cgi-perl/main.pl Hon Dah!
- Instant one-liner web application that works!
- Volunteers welcome for chasing mod_perl 2.0's API change...