in reply to Haiku generator

If you managed to do so much with so little knowledge you must be well suited to perl. Arrays are some sort of 'loops' in a linear way...

<updated>Ouch!,thank you.

print("$_ \n") foreach (qw(this is a loop of words));