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

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

by tye (Sage)
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        

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016374]
[choroba]: Why privately? Asking in SoPW means other people with similar problems can benefit from your questions, too.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2018-05-26 08:51 GMT
Find Nodes?
    Voting Booth?