Have the next component (/ftest.mc):

<%class>
    use Data::Dumper;
    has 'field' => (isa => 'ArrayRef[Int]', default => sub{[1,3]});
</%class>
<% Dumper $.field %>

The Base.mc containing only: <%augment wrap><% inner() %></%augment>

Requesting the http://localhost:5000/ftest under Poet gives a result:

$VAR1 = [];

Running the "mason.pl ftest.mc" gives the result:

$VAR1 = [
          1,
          3
        ];

Can please anybody tell me why?

thank you.
ak.
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to