note
adrianh
<blockquote><em> 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. </em></blockquote>
<p>Yup.</p>
<blockquote><em>
Using the power of PPI it should be trivial to generate a new method ... Is that more or less what you had in mind?
</em></blockquote>
<p>Yup. With the addition of the original selection being replaced by a call to the new method. extract_subroutine() from [cpan://Devel::Refactor] does a fair job of this particular task already.</p>
467179
467897