2005-01-30 09:10:36 PST
I've been talking in email with the author of Devel::Refactor, Scott Sotka, and I am trying to add a "rename_subroutine" feature that could be made avaiable in EPIC. This raises some questions:
1. How would you feel about my changing Devel::Refactor so that the current "extract subroutine" was provided by a new object method:
my $refactory = Devel::Refactor->new;
my ($new_sub_call,$new_code) = $refactory->extract_subroutine($new_name,$code_snippet);
2. What would be the best interface to rename_subroutine() for EPIC? I think we want to be able to pass either a single file name, or a directory to search all Perl files. I think it would be nice if EPIC showing a comparison for each file, showing the proposed changes, like a diff, so the user can accept or reject each propsoed change.