- or download this
my $y = 0;
my @list;
foreach (@scores) {
...
<polyline points="$list" style="stroke: black; width: 1px; fill: non
+e;"/>
</svg>
SVG
- or download this
my $y = 0;
my @list;
foreach (@scores) {
...
]}" style="stroke: black; width: 1px; fill: none;"/>
</svg>
SVG
- or download this
my @list = map {
$scores[$_] != 0 ? ($_, $scores[$_] * -1.0) : ()
} 0 .. $#scores;
- or download this
my @l_list = map [ $_, $scores[$_] * -1.0 ], 0 .. $#scores;
print << "SVG";
... @{[
join ",", map @$_, grep $_->[0] != 0, @l_list;
]} ...