I have been using MacOS X to write shell and perl scripts. Once I have completed my scripts, I run then on a Sun Unix system.
When I run scripts on my MacOS X, I have to put the application name before the program name in order to get the script to run - i.e. ...
[MacOSX:~] admin% perl...