when you copy a perl script on milworm for a example how do you do to use it on metasploit? its perl supported if you use 2.7

anyonw knows? maybe there is some kind of tutorial?

I have searched the forum but i have gotten alot of different examples and most of them didnt work that good.