Help for this page

Select Code to Download


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