How can I get PHP's (deployment) simplicity but Perl's power?

后端 未结 12 1358
没有蜡笔的小新
没有蜡笔的小新 2021-02-12 15:09

I despise the PHP language, and I\'m quite certain that I\'m not alone. But the great thing about PHP is the way that mod_php takes and hides the gory details of integrating wi

12条回答
  •  别跟我提以往
    2021-02-12 15:23

    The closest, well-regarded equivalent to PHP in Perl is probably HTML::Mason.

    Like PHP, it embeds Perl into your document and renders it:

    % my $noun = 'World';
    Hello <% $noun %>!
    How are ya?
    

    The O'Reilly book Embedding Perl in HTML with Mason is available online for free.

提交回复
热议问题