my $y = 12; $img->string(gdSmallFont, 10, $y, $line1, $color); $y += $delta; $img->string(gdSmallFont, 10, $y, $line2, $color); $y += $delta; $img->string(gdSmallFont, 10, $y, $line3, $color); ...