in reply to pivot_root in perl ?

You can just run the pivot_root command, assuming it's available, ofcoure.