Subject: | perldoc document bug for $URI::ABS_REMOTE_LEADING_DOTS |
Version:
------------------------
This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2001, Larry Wall
Binary build 633 provided by ActiveState Corp. http://www.ActiveState.com
Built 21:33:05 Jun 17 2002
------------------------
Problem:
perldoc URI gave me the following text and example for $URI::ABS_REMOTE_LEADING_DOTS:
-----------------------------------
$URI::ABS_REMOTE_LEADING_DOTS
You can also have the abs() method ignore excess ".." segments in
the relative URI by setting $URI::ABS_REMOTE_LEADING_DOTS to a TRUE
value. The difference is demonstrated by the following examples:
URI->new("../../../foo")->abs("http://host/a/b")
==> "http://host/../../foo"
local $URI::URL::ABS_REMOTE_LEADING_DOTS = 1;
URI->new("../../../foo")->abs("http://host/a/b")
==> "http://host/foo"
-----------------------------------
The example shows $URI::URL::ABS_REMOTE_LEADING_DOTS, where it should, as near as I can tell, be $URI::ABS_REMOTE_LEADING_DOTS.