http://www.perlmonks.org?node_id=932030


in reply to System() in list mode?

The very first response seems to me to tell you everything you need to know -- your code doesn't work because the multi-argument form of system() isn't invoking a shell, so your "$PATH" isn't getting expanded, so it's just printing the characters dollar-sign, pee, ay, tee, aitch.

And I concur that you're being quite rude to people who you seem to hope will help you. Especially since it looks to me like you're not reading the responses carefully enough to benefit from them.