Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by tye (Sage)
on Jan 31, 2013 at 18:56 UTC ( [id://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        

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1016374]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-18 23:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found