in reply to Draw a line

Use GD or Imager or ImageMagick or Tk::Canvas or ...