Subject: | <%args> @Array </%args> wrong using recente perl release |
Date: | Mon, 27 Mar 2017 08:53:45 +0200 (CEST) |
To: | bug-HTML-Mason [...] rt.cpan.org |
From: | Guido Brugnara <gdo [...] leader.it> |
Using Perl 5.22 on Ubuntu 16.04+Apache2.4+mod_perl when I call this test page:
http://myserver/test_bug_array_params.html?Arr=uno&Arr=due&Arr=tre
it respond:
@Array = [ 'ARRAY(0x7fadc00093e0)' ]
%ARGS = { 'Arr' => 'ARRAY(0x7fadc00093e0)' }
Using Perl 5.14 on Ubuntu 12.04+Apache2.2+mod_perl the correct result is this:
@Array = [ 'uno', 'due', 'tre' ]
%ARGS = { 'Arr' => [ 'uno', 'due', 'tre' ] }
test_bug_array_params.html test file:
---------------------------------------
<%flags>
inherit => undef
</%flags>
<%args>
@Arr
</%args>
<%once>
use Data::Dumper;
</%once>
@Array = <% Dumper(\@Arr) %><br>
%ARGS = <% Dumper(\%ARGS) %>
---------------------------------------
bye
gdo