>Hello Liste
>
>I have got a question concering MPW and MacPerl :
>
>if I have got script which starts out :
>
>#! -tw
>
>     use CGI ':standard';
>
>.............(rest of the code)
>
>
>checking the script in MacPerl goes past this line, whereas in MPW it says:
># Can't locate CGI.pm in @INC.
>File 'faulty.pl'; Line 3
># BEGIN failed--compilation aborted.
>File 'faulty.pl'; Line 3
>
>
>does this mean, I have to define some paths somewhere for MPW, or
>what did I wrong ?
>
>Matthias Dorn

Hi Matthias,

probably your MPW installation is missing the 'Perl' startup file.
The 'MPW' folder contains a folder named
'Startup Items'. Create a plain text file 'Perl', copy the following
lines to it, change the definition of the MACPERL variable ( Set
MACPERL  'YourHD:MacPerl :'  ) according to your needs and put the
file in the Startup Items folder.

_____

### MPW startup file for Perl, generated by Install.MPW_Perl
#
# This file contains definitions necessary to run the MacPerl MPW tool
#
# Set PERL5LIB "" -> original

Set MACPERL  'YourHD:MacPerl :'
        Export MACPERL        # The path to the MacPerl libraries and
documentation
Set PERL5LIB "{MACPERL}site_perl:,{MACPERL}lib:"
        Export PERL5LIB       # The path to the MacPerl libraries
Set Shuck "{MACPERL}Shuck"
        Export Shuck          # The path to the MacPerl documentation viewer

AddMenu Find '-(' ''
AddMenu Find "Perl Help" 
        '"{Shuck}"; SendAE -e miscmvis -do -t Shuck -----TEXT
`catenate "{active}.§"`'
SetKey "Command-Option-p" 
        '"{Shuck}"; SendAE -e miscmvis -do -t Shuck -----TEXT
`catenate "{active}.§"`'

################## ADD SITE SPECIFIC SETTINGS HERE ######################

____

HTH.

Best regards,

--Thomas

Reply via email to