in reply to code does not work on HP

Apparently either HP's /bin/sh or its exec() call is passing the entire shebang line and /bin/sh doesn't know what to do with the `# A comment ...' chunk. See perldoc perlrun for some other alternatives to hardcoding the path to perl in the shebang (not that there's not advantages to hardcoding it, especially if you leave multiple versions lying around your PATH).