On Fri, 2 Feb 2001, Frank Mitchell wrote:

> On Linux, you can try:
> 
> 	#!/usr/bin/env ruby
> 
> Dunno if that will work on Windows, though.  How do Perl scripts run?
> 

For versions where you cannot associate a file type (ie, . followed by a
three letter suffix) there is a nice perl app that will convert a perl
program to a batch file. Essentially it adds a header to the file and
bootstraps perl to launch the file and passes perl the command line args.

I don't know if this is a general perl program or just available by
ActiveState. It's been a while, I think the name is pl2bat or something
like that.

If someone can post the header, it will be easy to see if Ruby can use the
same trick.


====================================================
Jim Freeze
jim / freeze.org
--------------------------------------------------- 
** http://www.freeze.org **
====================================================