Markup::Perl

Turn your CGI inside-out.
Download

Markup::Perl Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Michael Mathews
  • Publisher web site:
  • http://search.cpan.org/~mmathews/

Markup::Perl Tags


Markup::Perl Description

Turn your CGI inside-out. Markup::Perl is a Perl module that will turn your CGI inside-out.SYNOPSIS # don't write this... print "Content-type: text/html; "; print "< html > < body > "; print "< p > Your "lucky number" is "; print "< i >", int rand 10, "< /i > < /p > "; print "< /body > < /html > "; # write this instead... use Markup::Perl; < html > < body > < p > Your "lucky number" is < i >< perl > print int rand 10 < /perl >< /i > < /p > < /body > < /html >For some problems, particularly in the presentation layer, thinking of the solution as a webpage that can run perl is more natural than thinking of it as a perl script that can print a webpage.It's been done before, but this module is simple. The source code is compact: one file and less than 2k of code. Simply put: if you can do it in Perl, you can do it in Markup::Perl, only without all the print statements, heredocs and quotation marks. Requirements: · Perl


Markup::Perl Related Software