in reply to Tic tac toe
Slick piece of code BTW.
/\/\averick
s/$P{3}/$&/; [download]
s/($P.?)$&/; [download]
Very nice code! :) I like the way that $& is used.