in reply to Re^2: Passing commands to subroutines
in thread Passing commands to subroutines

You'd use fork and exec. Did you read the perlipc manual page I suggested? It contains code that does what you want which you can copy and adjust. I'm not going to cut and paste it for you.