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

[MacPerl] Dumb Newbie-ish question



I've been successful hand-rolling my own CGI and general-purpose code with  MacPerl, but I haven't yet used modules of any type. I now want to try something incredibly simple for accessing Internet Config, but I want to run the little app as a standalone application, i.e. saved as a "Runtime" version. 

Yes, I know this will be a huge binary file for the work it does, but if I can distribute this to others who don't have MacPerl, that's a small price to pay.

The code snippet, lifted from the upcoming MacPerl book (Bravo, Chris et al!!!) is this:

#!perl -w
use Mac::InternetConfig;
print $InternetConfig{kICRealName()}, "\n";
print $InternetConfig{kICEmail()}, "\n";
print $InternetConfig{kICWWWHomePage()}, "\n";

and under Macperl, it runs just fine. When saved as a Runtime version, I get this message:

# Can't locate Mac/InternetConfig.pm in @INC.
File 'Duckman:Desktop Folder:ICTest'; Line 2
# BEGIN failed--compilation aborted.
File 'Duckman:Desktop Folder:ICTest'; Line 2

(Duckman, of course, is the name of the disk the program is on.)

Questions:

1) Can I in fact do this at all - that is, save a script that uses the Internet Config module as a standalone app?

2) What do I need to do to make MacPerl compile this properly?

If this is covered in a FAQ or something else, feel free to insult me as you point me to it, just point me to it!

Thanks,

Howard



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