Something like
perltidy script.pl && cat script.pl.tdy >script.pl && rm script.pl.tdy
Note, that it doesn't create backup.
Update: another approach is to dereference symlink:
perltidy -b `readlink script.pl`
In reply to Re: Perltidy with symbolic links
by zwon
in thread Perltidy with symbolic links
by notwitch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |