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

Re: [MacPerl] GUSI, as documented in Shuck, does not work?



Holger Skok <skok@itw.uni-stuttgart.de> writes:
>After having upgraded to MacOS8.0 (German) some of
>my apps seem to have trouble, MacPERL included. I've
>installed the latest version (5.1.8r4) and launched a script
>which worked fine before. I copied the code straight
>out of the docs as presented by Shuck,

Well, then the docs are wrong.

>Here's the code snippet:
>
>>if ($mac) {
>>	require "GUSI.ph";
>>	$fileName = MacPerl::Choose(
>>		GUSI::AF_FILE, 0, "",
>>		GUSI::pack_sa_constr_file("", "TEXT"));
>>}

Nowadays, Perl does more compiling than it used to, so the procedures are not
yet visible when they are called (that is why usually, "use" is used.

Prefix the two GUSI:: procedures with a & and it will work.

># Argument "GUSI::AF_FILE" isn't numeric in entersub.
>File 'Lucy van Pelt:Doktorarbeit:fortran sources:ky:exjac.pl'; Line 10

Hmmm... Doktorarbeit... that reminds me... back to work.

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   "I'm set free to find a new illusion" -- Velvet Underground

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