$ echo -e "sub testing\n{\nx=1;x++;if(1){\nx--;\n}\n}\n" | perltidy -bli -i=2 -et=2 sub testing { x = 1; x++; if (1) { x--; } } $ echo -e "sub testing\n{\nx=1;x++;if(1){\nx--;\n}\n}\n" | perltidy -bli -i=2 -et=2|hexdump -c 0000000 s u b t e s t i n g \n \t { \n \t 0000010 x = 1 ; \n \t x + + ; \n \t i f 0000020 ( 1 ) \n \t \t { \n \t \t x - - ; \n 0000030 \t \t } \n \t } \n \n