Added setup for 18 and tweaked output of perl for autotesting.