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

Re: [MacPerl] Run Script



Hello again,

The w3mir script I'm playing with is a descendent of htget, which downloads
a mirror copy of an indicated web site. This package appears to work fine
on a Linux box, but has problems when started via the one liner dialog
under MacPerl.

I get the idea that I shouldn't expect this to work right away, and that I
have to modify certain things to get Mac ports of http savvy perl scripts
to fly. Does someone out there have a little bit of insight on relatively
sensible approaches to getting this code to work? There are associate files
like w3http.pm, w3htmlop.pm and so on that use other files that do appear
to be in the lib folder hierarchy.

I'm told that the libwww collection for MacPerl appears to be a subset. I
searched for but didn't find things in w3mir that would overtly make a Mac
version difficult to do, like fork()...

Once I got past the problem with strange type and creator values for the
.pm files MacPerl seems to be able to see the code well enough to try and
run it without contradictory error messages.

Is there a conversion guide for regular Perl code to make it MacPerl
compatible? There doesn't appear to be such a thing in the MacPerl book
other than a small section that talks about a short list of MacPerl
oddities in chapter 9 (I just got the book).

Muddling Through,

-m


>Hi,
>
>I'm trying to familiarize myself with MacPerl by working with a script
>called w3mir (which used to be htget, a web site mirror maker) to see if I
>can get it to work. I'm running into some early bumps that I haven't caught
>mentioned in the archives or the faq or MacPerl for that matter.
>
>I have the Scripts preferences set to Run. When I attempt to Run w3mir.pl I
>get the following error in a dialog box:
>
>"This file is too big to be edited in MacPerl. You may, however, either
>save it as a MacPerl script or runtime or edit it with your external
>editor."
>
>However, the perl window shows:
>
># BEGIN failed--compilation aborted.
>File 'xyz:MacPerl Ä:w3mir-1.0.5:w3mir.PL'; Line 196
>
>My gut feel is to believe the message just above. Is there something
>obvious about the dialog box's behavior here or can I disregard it to get
>to the heart of the matter, which is what the second error message talks
>about?
>
>-m
>
>
>
>***** Want to unsubscribe from this list?
>***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch




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