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

Re: [MacPerl] Q: use MacPerl



Chris Nandor writes:
>At 23.10 12/24/97, Xah Lee wrote:
>>I ran the following
>>
>>#!perl -w
>>
>>use strict;
>>use MacPerl;
>>
>>my ($aa) = MakeFSSpec('APS600:T2:Perl files:unix learning notes');
>>
>>print $aa;
>
>>Could anyone explain? It doesn't appear that I've screwed up my MacPerl.
>>(I'm trying to learn package scheme)
>
>Do not C<use MacPerl> for this.  MakeFSSpec has nothing to do with it.  See
>help under MacPerl specifics or see The MacPerl Package review chapter
>online for my book (though yes, these errors should not be occuring
>regardless).

Xah Lee does have a point in expecting C<use MacPerl> to work, and it was my
fault to let that module hang around the distribution without actually making
it work. I have done so for 5.1.6, but for historical reasons, I've made
the traditional routines EXPORT_OK, so you'd have to write:

use MacPerl qw(MakeFSSpec);

for the above to work.

>Anyway, if you comment out the line C<bootstrap MacPerl;> in MacPerl.pm,
>the errors will go away and the module will still work (though you have no
>need for it in this situation).  Correct me if I am wrong (Matthias), but I
>see no need for it, and it tries to redefine $MacPerl::Version apparently,
>which is read-only, so compilation files.

Correct.

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   "One fine day in my odd past..." -- Pixies, _Planet of Sound_

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