http://qs321.pair.com?node_id=75085


in reply to Triangle Golf

I offer, at 118 (not counting newlines):
@ARGV='ctriangle.txt';sub n{print " "x(40-$r/2).$x.$\};$/=$w;$_=<>; ($r=length($x.=" $_"))>$=and $==$r,n,$x=''for split;n


japhy -- Perl and Regex Hacker