in reply to Can files with extension ".command" on MacOSX be perl scripts? What is a way to let users execute Perl scripts on macosx from Finder?

you can use perl for that.
just take your ordinary perl code and insert #!/usr/bin/perl as the first line to let the shell know, that it's a perl script and give the file a chmod to make it executable.
  • Comment on Re: Can files with extension ".command" on MacOSX be perl scripts? What is a way to let users execute Perl scripts on macosx from Finder?
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: Can files with extension ".command" on MacOSX be perl scripts? What is a way to let users execute Perl scripts on macosx from Finder?
by Anonymous Monk on Feb 14, 2005 at 14:05 UTC
    Thanks for the answer! But do I have to use .command extension, or Finder is smart enough to try to execute any executable file with any name that has sheebang line using system() syscall?
      finder identifies files by it's extension, so you have to name it foo.command.