Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: namespace clash : how do I rename my module safely (grep -l)

by tye (Cardinal)
on Jan 31, 2013 at 18:56 UTC ( #1016374=note: print w/ replies, xml ) Need Help??


in reply to namespace clash : how do I rename my module safely

Rename the files (then commit, IMHO, so the renaming is "obvious" in the repo) and then vim $( git grep -l StackExchange ). I think it'd take me less time to do that (by hand) then has been spent talking about it in this thread.

As for renaming the files, I'd just use mvi to make that extra easy. Though the version I have posted there doesn't know about doing "git mv" instead of just "mv" (but that is 2 minute's of work to address). :)

- tye        


Comment on Re: namespace clash : how do I rename my module safely (grep -l)
Download Code
Re^2: namespace clash : how do I rename my module safely (grep -l)
by gideondsouza (Pilgrim) on Feb 03, 2013 at 04:30 UTC

    Yep. I just created a module with the new name and the copy-pasted the old code into it. I cleaned it up with a search and replace :) All done pretty quickly.

    I was just afraid about missing anything obvious or making a silly mistake.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (15)
As of 2014-10-21 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (107 votes), past polls