The A lines are longer (three metrical feet) and the B lines are shorter (two metrical feet).
An example is:
There was an old man from Peru
Who dreamed he was eating his shoe
He woke in the night
With a terrible fright
And found to his shame it was true
For further reading, see the wikipedia article:
http://en.wikipedia.org/wiki/Limerick_(poetry)#Form