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

Re: [MacPerl] beginner needs book recommendation and advice



At 18.32 -0500 1999.03.02, Peter Prymmer wrote:
>on the command line.  What to do?  Well perlport.pod mentions:
>
>   if ($MacPerl::Version =~ /App/) { }
>
>Unfortunately $MacPerl::Version is only gonna be set on a Mac.  Elsewhere
>I do not presume to tweak a package called MacPerl::.

  if ($MacPerl::Version && $MacPerl::Version =~ /App/) { }

Not great, but oh well.  :)


>My current strategy would be to leave the @ARGV switch handling as is
>and perhaps leave the MacPerl::Pick() code in but commented out to avoid
>-w -Mstrict hassles.  This would mean that it'd work fine under MPW MacPerl
>but a regular app user would need to tweak the code :-(
>
>Note that they're pretty particular, e.g. Getopt::* is being deprecated
>in the PPT project.
>
>What should one do in this case?  Perhaps re-release PPT for Mac with
>various CLI-switch -> MacPerl-GUI tweaks?

Hm.  How about at the top of PPT programs:

  $::PROCESS_ARGV = 1;

And then in PERL5OPT in the app put something like:

  -MMac::ARGV

Where Mac::ARGV would then, if $main::PROCESS_ARGV is true, would bring up
a dialog to type in command line options.

The implementation may not be perfect, but it is an idea.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

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