- or download this
a a a a a a a a a
a a a a a a a a a
a a a a a a a a a
a a a a a a a a
- or download this
a
a a
a a a
...
a a a a a a
a a a a a a a
a a a a a a a
- or download this
The
same
principle
...
basically splitting
words only on spaces
or new lines
- or download this
/[
]+/
- or download this
open F,"ctriangle.txt";sub n{print
" "x(40-$r/2)."$x\n"};for(split/[
]+/,join'',<F>){$c=$r,n,$x=''if(
$r=length($x.=" $_"))>$c}n
- or download this
open F,"ctriangle.txt";sub n{print
" "x(40-$r/2)."$x\n"};$/=$w;$_=<F>;
for(split){$c=$r,n,$x=''if(
$r=length($x.=" $_"))>$c}n