Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Refactoring Perl 1 - Extract Method

by FunkyMonk (Canon)
on Jun 25, 2007 at 18:06 UTC ( #623220=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (defun refactor-extract ()
      "Change region into a subroutine"
    ...
    
      (shell-command-on-region (point) (mark) "./refactor-extract" t)
      )
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    my $code = join '', <>;
    my $name = "refactored_" . sprintf( "%04d", rand() * 10000 );
    print join "\n", Devel::Refactor->new->extract_subroutine( $name, $cod
    +e );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://623220]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2015-07-30 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls