Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • This is a bit of a hack, but if you use vim, try this:

    vnoremap ,pt :!perltidy<cr>

    Then, if you enter visual mode (hitting ctrl-v and selecting the lines you want), you can just type ,pt and it will reformat the lines you've selected -- event if they're in POD. You'll still need to bump them over a space, but it's better than nothing!

    I'm sure emacs has something similar, I just don't know what it is.

    • The Emacs equivalent is shell-command-on-region, which is bound to M-| by default. To tidy the region, type C-u M-| perltidy RET