in reply to problem with shebang

I don't know if that's problem, but shouldn't that be -w instead of -W?

Also, what OS are you using? Windows has issues running .pl's directly, although I think the problems might be limited to in/out redirection. (See pl2bat.)

Update: Apparently, -W is a valid option. I should have checked first.