这是什么类型的perl?

Joe*_*lin 3 html tags perl

我需要调试一些如下所示的代码.但是,我不知道它是什么语言.它似乎是perl和html的组合.有人可以让我知道这究竟是什么,以便我可以做未来的研究吗?

//All in the same file
<%doc>
    # Something
    # Something
</%doc>

<%args>
    $id => undef
    $debug => undef
    $other => under
</%args>

<%perl>
   Code that appears to be perl code
</%perl>

<!DOCTYPE html>
    <html>
        HTML that also appears to have code (maybe perl code) inside <%these types of %> brackets
        as well as <& these types &>
    </html>
Run Code Online (Sandbox Code Playgroud)

有人可以解释一下究竟是什么.它是perl,还是html?或者它是两者的某种组合?如果它是后者,那么你是如何从HTML中引用perl代码的:<%foo%> <&bar&>

抱歉这个令人困惑的问题.我很乐意提供更多细节.

ike*_*ami 12

它似乎是HTML :: Mason的模板.

  • @JoeyFranklin是HTML :: Mason(又名Mason1)http://search.cpan.org/~jswartz/HTML-Mason-1.51/lib/HTML/Mason.pm.梅森(又名Mason2)不使用`<%args>`... (2认同)