Hello,
I have this simple code :
[.-
$req = shift;
@tmp=("1","a","zzz");
$udat{verdict} = \@tmp; # <- this doesn't work
# $udat{verdict} = ["1","bla","x"]; # <- this works
-]
<script>
document.location="somewhere.html";
</script>
When I reach somewhere.html, $udat{verdict} is populated only when the second line
is active (the one explicitly defining the arrayref as ["1","bla","x"]).
When I try with a reference to @tmp it is just a reference to an empty array.
What am I missing ? Anyone else experimenting such behaviour ?
--
Jean-Christophe Boggio -o)
embperl@thefreecat.org /\\
Independant Consultant and Developer _\_V
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
I have this simple code :
[.-
$req = shift;
@tmp=("1","a","zzz");
$udat{verdict} = \@tmp; # <- this doesn't work
# $udat{verdict} = ["1","bla","x"]; # <- this works
-]
<script>
document.location="somewhere.html";
</script>
When I reach somewhere.html, $udat{verdict} is populated only when the second line
is active (the one explicitly defining the arrayref as ["1","bla","x"]).
When I try with a reference to @tmp it is just a reference to an empty array.
What am I missing ? Anyone else experimenting such behaviour ?
--
Jean-Christophe Boggio -o)
embperl@thefreecat.org /\\
Independant Consultant and Developer _\_V
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org