On Tue, Nov 21, 2006 at 03:32:39PM -0700, Himanshu Ardawatia wrote:
> I am afraid if thats possible unlike 'c' programs.
> In unix otherwise you can make any script 'executable' by chmod a+x
> scriptname and putting that in $PATH (or /bin). Then one should be able to
> run it just like any unix command. But all dependencies have to be together
> or in the $PATH.
> 
> If anybody knows any other solution then please post it.

I've recently discovered that OCaml allows the programmer to use Perl
modules.  I don't know many details about how this works, but if it
works as well as the impression I have from what I've read so far, you
could probably just write an entire program in a Perl module, then use
that module from within an OCaml program, which you can then compile to
a persistent binary executable.

I have a sneaking suspicion it's not that easy, though.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Amazon.com interview candidate: "When C++ is your
hammer, everything starts to look like your thumb."

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to