Help for this page

Select Code to Download


  1. or download this
    sub scale {
      my ($coords, $factor}
      map { $_ * $factor } @$coords
    }
    
  2. or download this
    $a_coords = [ [0,0], [0,10], [10,10], [10,0] ]; # a square