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

[MacPerl] Re: Problems installing Mac Glue



At 10:08 pm -0500 26/12/99, Chris Nandor wrote:

>The cpan-mac instructions tell you to put site_perl in your prefs, so it
>comes before lib.  This could be the cause of problems.  Go into the prefs
>and add it, if you haven't already.

I had already done this, fwiw.

> >Part of the problem seems to have been caused by my dropping the expanded
>>folder onto installme rather than the tar.gz.  At one point in the docs it
>>says either method will do and at another there is a clear warning to use
> >the compressed file.
>
>There should be no difference in the methods.  What clear warning was there
>to use the compressed file?

We are warned that MacBinary files may not be decoded.  This is precisely what the problem was.

>Such warnings are sometimes the result of a poorly constructed MANIFEST
>file, which is the case here.  No worries, it worked fine.

Great.

> >When run from MacPerl, the loading of the library always takes several
>>seconds, no matter how often I run the script.
>
>It depends on the machine.  On my PowerBook G3/292, it is about one second.

More like 5 on my 180 MHz machine, which is tiresome, of course.

>  #!perl -w
>  use Mac::Glue;
>  $e = new Mac::Glue 'Eudora Pro';
>  print $e->get( $e->prop(selected_text => window => 1) );
>
>See the Mac::Glue docs for object specifier records.

Ah! Good.

Now for another question -- please forgive my beginner's ignorance; I remember going through all this when I finally took Frontier by the balls a few years back...

Alpha seems a very nice editor for working with Perl, but I seem to be having a problem with carriage returns (reported as such but with code /012) and the Apple Events Alpha is using.  Taking the text from a script that works well in the Perl editor and pasting it into Alpha to run it, I get the error reported that "I may have got the file over a network and not converted the line endings" or something like that.  No matter what I do, even if there is not a cr or a char 12 in sight and even if I save the Perl document and open it in Alpha, I can't get rid of this error.

I must say I am not yet familiar with Alpha, so there is probably a very obvious answer to this.

Thanks.

JD


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org