HI Robin
Thanks for the pointers.I am very new to Perl but I am learning fast. I
understand that the message is coming up because of the use of the "strict"
pragma (new word for me - I hope I am using it correctly :). There is a
config file that is pointed to that should contina the path that the
"PATH_LIB" variable uses. I have some concerns that the syntax to describe
the pathways is not correct for the Mac. The cgi text files I am using came
from OpenSRS at Tucows and were definitely written for Unix. If I defined
the "PATH_LIB" within the actual cgi itself and it works, then I would know
that the cgi is not able to see the config file. If you are willing I would
love to send you the two files in question - they are only a few k.
If you have a minute I will ask these questions as well - perhaps you or
someone else in the group can enlighten me a bit more :)
a) when I specify a pathway, should I use ":" or can I leave the unix "/"
b) my cgi's sit in a folder with the following path
Macintosh HD:*Network Software:webstar:cgi-bin:opensrs:cgi:
and the config file sits in
Macintosh HD:*Network Software:webstar:cgi-bin:opensrs:etc:
When I reference the Library files at
Macintosh HD:*Network Software:webstar:cgi-bin:opensrs:lib:
do I need to reference all the way out to the root of the machine or just to
the webstar root? Also, do I start with the ":" or just with Macintosh HD
(or webstar)? (If I have these wrong nothing will work)
c) I have saved the files as CGI's using MacPerl. Does MacPErl have anything
else to do when serving out the cgi's or does webstar do all the work ( see
what a neophyte I am :)
Answers to these questions should keep me busy for a few hours. I have had a
great support person from OpenSRS look at my files and he thinks they look
fine. He is however a Unix weenie, not a Mac weenie so he may not understand
the subtleties of the Mac OS.
Thanks again for your reply and to anyone else who might be able to help.
Bill
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: April 17, 2001 7:41 AM
To: [EMAIL PROTECTED]
Subject: Re: [MacPerl] OpenSRS anyone??
"Bill Doucet" <[EMAIL PROTECTED]> wrote:
>I am new to the list, new to MacPerl and new to Perl (I can hear the
>collective "Oh GREAT!" )
Actually compared to certain other perl lists (Ok news groups) which shall
remain nameless, this one is pretty newbie friendly
>.... I need a bit of info about an error message I am getting:
>
># Global symbol "PATH_LIB" requires explicit package name.
>File 'Macintosh HD:*NETWORK
>SOFTWARE:webstar:cgi-bin:opensrs:cgi:reg_system.cgi'; Line 9
># BEGIN not safe after errors--compilation aborted.
>File 'Macintosh HD:*NETWORK
>SOFTWARE:webstar:cgi-bin:opensrs:cgi:reg_system.cgi'; Line 9
it's kind of hard to do diagnostics without having a look at the source
code, but at a rough guess I'd say this error message is generated by the
'strict' pragma (use strict;) because
you're trying to set a variable called $PATH_LIB on (or just before) line 9
without having using a 'my()' declaration as in -
my ($PATH_LIB)='path:to:somewhere';
the other two lines are thrown up because of the first error.
solution : change the variable declaration to proceed
hth
Robin
- [MacPerl] OpenSRS anyone?? Bill Doucet
- Re: [MacPerl] OpenSRS anyone?? Bart Lateur
- Re: [MacPerl] OpenSRS anyone?? robinmcf
- Re: [MacPerl] OpenSRS anyone?? Bill Doucet
- Re: [MacPerl] OpenSRS anyone?? Scott R. Godin
- RE: [MacPerl] OpenSRS anyone?? Bill Doucet
- RE: [MacPerl] OpenSRS anyone?? Ken Williams
- RE: [MacPerl] OpenSRS anyone?? robinmcf