At 11:16 -0700 2001.04.26, Tom Sackett wrote:
>How can a script know if it's being run in the MacPerl application or in
>the MPW tool? I need a make a script look for command line arguments if
>it's run in MPW, and environment variables if it's run in the MacPerl
>application.

>From perlport.pod (not included with MacPerl 5.2.0r4):

    $is_app    = $MacPerl::Version =~ /App/;
    $is_tool   = $MacPerl::Version =~ /MPW/;

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to