in reply to passing a parameter to an outside program

If you need more complex parameter passing than what ikegami mentioned, you might like to look at perldoc perlipc

$\=~s;s*.*;q^|D9JYJ^^qq^\//\\\///^;ex;print