http://www.perlmonks.org?node_id=468048


in reply to Re^4: Features missing in perl IDEs?
in thread Features missing in perl IDEs?

As I was writing this, it occurred to me that you don't have to do it because the java one scans your selection for variables and automatically determines which variables you need passed.

Yup.

Using the power of PPI it should be trivial to generate a new method ... Is that more or less what you had in mind?

Yup. With the addition of the original selection being replaced by a call to the new method. extract_subroutine() from Devel::Refactor does a fair job of this particular task already.