in reply to how to upgrade perl version

just a guess but you could try reading the README or INSTALL file that comes with whatever version you want.
the hardest line to type correctly is: stty erase ^H