On Wed, 23 Jan 2002 [EMAIL PROTECTED] wrote:

> I'm using SSLeay along with Open SSl to retrieve https pages via SSL.pm.
> I'm not using a proxy, but in the runtime I get the familiar "unitialized
> variable" message being displayed for a line in SSL.pm. I normally like to
> keep my executions clean and don't want "uninit" messages from coming up,
> so I would like to resolve this problem. I'm using 2.75 SSL.pm and the
> error is coming from line 363 "$proxy_server =~ s|^https?://||i; First, I
> haven't a clue as to what this statement is doing from the syntax.
> I'm guessing that it is doing a pattern search but the "|" are
> throwing me off. I too see from the code that it is trying to parse
> HTTPS_PROXY key value from the ENV hash. I put a value into the key
> value, (i.e. HTTPS_PROXY) but I still get the "unit" message. Could
> someone be so kind as to tell me what the statement is doing and how I
> might eliminate the message. Yes, I do know that I could remove "-w"
> on the execution to suppress the message.
>
> Thanks in advance for any help.
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
>

This line is attempting a substitution -- the "|" characters are the
regular expression delimiters (Perl is quite liberal in what characters
are used in this context).  The 'http' (with optional 's') and '://' are
being replaced by a null string.  The trailing 'i' indicates "ignore
case."  So it is actually stripping the protocol information from the URL.
The complaint is probably coming from the variable $proxy_server not being
properly defined somewhere before this line, hence it cannot be bound to
the substitution operator.

Philip Shanks
[EMAIL PROTECTED]
-----
If you find a solution and become attached to it,
the solution may become your next problem.
(more wisdom from /usr/games/fortune)

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to