> I don't know how to change the perl path.
Then that would be the first thing you need to learn. Randomly moving files around - especially ones that were installed so that their path is meaningful - is a REALLY BAD IDEA. Since you know what you've moved, I'd suggest moving it back ASAP. If you've moved other things in addition to what you've mentioned, and lost track of which ones and where, then the only thing remaining is to reinstall Perl. In fact, since Perl is quite often involved in the initial installation of Linux, you may well have broken the entire system.
The as-yet-unmentioned underlying problem here is that you had to use the root account to move the files you've mentioned. It's trivially easy to destroy your system by doing so, which is why you shouldn't be doing it. Running as root for anything but system-critical, clearly-defined and clearly understood tasks is a great way to kill your system - and you may well have already done that.
If you can restore your system's integrity by carefully recalling what you've moved and then putting it back (this assumes that you did not destroy/distort some vital permissions or owner/group info while moving them), then please come back and ask about updating the Perl module/library path. If you can't, then any advice about that detail will be of no help to you whatsoever, and you'll need to reinstall your system.
--
I hate storms, but calms undermine my spirits.
-- Bernard Moitessier, "The Long Way"