I can't tell if the pasted code is the style you want, or the style that isn't working for you. Assuming the first, perltidy -bli -i=2 -et=2 produces something close to what you posted.
For example:
$ echo -e "sub testing\n{\nx=1;x++;if(1){\nx--;\n}\n}\n" | perltidy -b
+li -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 -b
+li -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