There is a section in the perltidy documentation on how to do that. See: skipping_selected_sections_of_code
In short, you should sourrond the code you don't want modified with #<<< and #>>> tags.
In reply to Re: Disable perltidy in a region?
by chrestomanci
in thread Disable perltidy in a region?
by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |