my $way_lines = Goo::Canvas::Polyline->new($way_group, TRUE, $num_points, [\@points]); #here you have both the $points (assuming its an array_ref of points) # AND you have a nested array_ref in an array_ref ??? # [ \@points] ???? where did you come up with that?