When I use "$module->prune( 'PPI::Token::Whitespace' );" and save the results in $file is there an ease way back to working code for the saved code? I tried "Perl::Tidy" and it looks much better after this but id does not fix all.
#!/usr/bin/env…
I am using Per Tidy plugin in Padre IDE. By default, Tidy wrap my long lines into multiple lines which I don't like. How can I tell Tidy never wrap my lines?
I am trying to use Perl::Tidy module to minify Perl code as much as possible. I do not care about formatting of course, so I am setting the argv manually for the module. One issue that I am unable to figure out is the space on the sides of the "="…
I have a perltidy-mode.el lisp file, which is being loaded - I can call it manually by M-x perltidy-mode.
What would be the proper way to run it automatically after a file is opened (or emacs is loaded)?
(defalias 'perl-mode 'cperl-mode)
(defalias…
Referring to my previous question: How can I format boolean operators with perltidy? wondering if it's possible to make a perltidy plugin with my own finer formatting rules? Does perltidy allow this?
We have the following code:
sub some_method($self, %args) {
#code here
}
When I run it trough perltidy it gets formatted like this:
sub some_method ($self, %args) {
#code here
}
How to make perltidy to not add the space between the…
This is only the second perl script I have written, so any constructive help/advice would be greatly appreciated. Also, note that I am working on a Windows machine, using Strawberry Perl. I am aware that a Tidy module exists for Perl, but (for…
I'm trying to get perltidy to format an if statement like this:
if ($self->image eq $_->[1]
and $self->extension eq $_->[2]
and $self->location eq $_->[3]
and $self->modified eq $_->[4]
and $self->accessed eq…
I want to run perltidy before i look for diff in my subversion working copy.
in svn config i wrote:
diff-cmd = /usr/bin/d.sh
As David W said in this answer https://stackoverflow.com/a/5834900/1927848 i make a script…