wiki:PadrePluginFix

Version 8 (modified by azawawi, 3 years ago) (diff)

--

Padre::Plugin::Fix

Uses PPI to identify and transform stuff from form A to B.

  • Transform if(expr) { ... } into ... if expr
  • Transform ... if expr into if(expr) { ... }
  • Transform qq{string} where string does not contain escape sequences into q{string} or 'string'
  • if use v5.10; or greater is used, then print "something\n" can be transformed into say "something"
  • Transform my $param1 = shift into my ($param1) = @_; and vice versa
  • Convert if($something) elsif($something) else {} into given($something) { when... } and vice versa
  • Add Padre::Document::Perl::Beginner checks and convert them to PPI

No image "PadrePluginFix.png" attached to PadrePluginFix

TODO

Resources

__END__