in reply to copy and update through perl

PM is not a script writing service.

If you've "not done anytime before" and you "need to write a script," you need to...

Since we're here to help people learn, the first is an excellent option, unless you need the script yesterday (or "tomorrow")... in which case, you'd do well to check out the sites advertising programmers-for-hire.