[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Howto import modules into runtimes?



>At 12.53 97/4/21, Axel Rose wrote:
>>>>BEGIN { @INC="hard disk:macperl folder:lib:" };
>>>>use MyModule;
>>>
>>>If the module is in the right place in the Perl filetree, then all that is
>>>ncessary is a simple
>>>
>>>        use MyModule;
>>
>>I can't agree.
>>Just incorporating "use" is o.k. for the development Mac.
>>It doesn't work when saving the Perl script as runtime and
>>double-clicking the runtime, at least in my configuration.
>>
>>And: I can't afford to install MacPerl on every Mac I want
>>to distribute software to.
>
>I see.  I wasn't thinking about not having MacPerl installed.  That is your
>real problem.  What I said is still correct: "If the module is in the right
>place in the Perl filetree ... ."  But theproblem is you don't have Perl,
>and therefore no filetree.
>
>Personally, I suggest doing just what you said you don't want to do:
>install MacPerl on all those Macs.  It is very easy to install.  I had a
>non-programmer friend install it so I could write a script for him, and he
>had absolutely no problems.  However, you might have your reasons for not
>wanting to do that.
>
>I can't think of an easy way to make it work.  Sorry,
>
>#================================================================
>Chris Nandor                                      pudge@pobox.com
>PGP Key 1024/B76E72AD                           http://pudge.net/
>Keyfingerprint = 08 24 09 0B CE 73 CA 10  1F F7 7F 13 81 80 B6 B6
>

Hello,

      I can think of a dirty hack which may work. The text of the module files
which would generally be "used" could be appended to the source file which you
are wanting to distribute (possibly in their own "package" space), such that
they would always be accessible from the run-time. I know this does contravene
good software engineering practice, but I think that the method would work. You
may have to modify the usage of the routines - probably would have to if there
were any OOisms within. Let us know if this does work.

Bob

________________________________________________________________
          Bob Wilkinson, Perl Programmer, Pindar plc
Tel: +44 (0)1904 613040    Email: B.Wilkinson@pindar.co.uk
Fax: +44 (0)1904 613110    URL: http://www.connection.co.uk/bob
________________________________________________________________
  I don't speak for my employer - er, they made me say that..
________________________________________________________________



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch